Authentication Header with supabase?

Database & APIs

I dont understand how to create an API call e.g. a GET call, that requires the user to be authenticated. In the videos they get an auth token under global properties, which i dont have.
I think due to me, using supabase auth if im not wrong. Do i have to setup some additional logic to get the auth token or can i use User ID or Id token (JWT)?


So i was wondering how to implement the authentication header then? I also read that the auth token has some expiration time which would be troublesome if it expires and the api would fail.

I was thinking if the header is necessary at all. Can i just check for the auth-user_id in my API url?




What have you tried so far?

i tried this with userId replaced by the id in the supabase table:
../products?&user_id.eq.[userId]&name=ilike.*[searchString]*select=*

this gives me a success (200) but i dont get any values

Did you check FlutterFlow's Documentation for this topic?
Yes
1 reply