Closed yunpaik closed 1 week ago
Going to leave this open for now (even though duplicate) as for some reason the fix made in auth-js has not been released here in supabase-js.
This issue is impacting users of edge functions still currently.
We've made the fix in #1029 so it should be available in supabase-js v2.42.7, thanks for reporting this!
Bug report
Describe the bug
When calling
await supabaseAuthClient.auth.getUser()
in the edge function, the following error is returned even though the correct jwt token was provided.This issue only happens on v2.42.5. The same code works perfectly fine on v.2.42.4.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
await supabaseAuthClient.auth.getUser()
in the edge function with correct jwt tokenExpected behavior
I should be able to get user session without any issue