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?