Hi there, looking for some help in terms of setting up Supabase auth and then using the REST API to get data.
When sending a GET request:
If we send our request with the public key (via apikey) it works no problem
If we use the JWT after logging in with Supabase auth (Authorization : Bearer [key]) it does not work. We get a 401 error.
If we look at the Supabase logs for the unauthorized request, we can see that auth_userid has been found within Supabase. The RLS policy on the table we are trying to access currently allows anyone to read from it.
Thank you, that’s helpful. I think this is perhaps more of a Supabase question then - but just to sense check. Since:
It works if I send just the public API key
It does not work if I send the public API key and select “Send credentials”
This says to me that Supabase has not been configured to allow that particular user to access that data. Will investigate, but if anyone has pointers that would be appreciated.
Supabase Auth is installed. I register a user. I receive an e-mail and confirm it. In Supabase you can see that the user is confirmed, but in Weweb the user is not visible. What is the reason?