Closed ryan-voitiskis closed 1 week ago
As of right now, you'll need to pass the jwt, from the authorization header, into the getUser()
call. Be sure to split the header, to remove Bearer
at the beginning.
Sorry I didn't see the existing issue in auth-js. Closing now.
Bug report
Describe the bug
In supabase-js@2.42.5 auth.getUser() returns:
To Reproduce
Steps to reproduce the behavior:
Deploy a supabase edge function that calls auth.getUser() on supabase client.
Expected behavior
auth.getUser() returns authenticated user object as it does when using supabase-js@2.42.4.
System information
Additional context
Possibly related to issue #1023 'New auth error codes missing in error object'