This Endpoint Requires Bearer token
I have a simple login page that currently works which redirects the user to another page . On that page I am trying to retrieve information about that user . My backend is Supabase . I set up an API call for the user to Supabase and I made the formula in the screenshot to pass the bearer token to the API . But in preview it keeps giving me error 401 : This Endpoint Requires Bearer token . What am I doing wrong ? Also , when do you do the redirect ? Right now , you navigate away before you received the answer from the api and set the cookie As noted earlier , it should be Sign in - > on success Set Cookies - > on success Redirect