Closed yunpaik closed 6 months 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 supabase/supabase-js#1029 so it should be available in supabase-js v2.42.7, thanks for reporting this!
We've made the fix in supabase/supabase-js#1029 so it should be available in supabase-js v2.42.7, thanks for reporting this!
@kangmingtay Still getting this issue (caused by upgrading from 2.38.4 to 2.43.2)
I'm actually getting it in a NextJS route-handler. But seems to be essentially the same problem, although the solution of explicitly passing the JWT isn't relevant given the supabase ssr client uses cookies.
Can make a separate issue if needed
We've made the fix in supabase/supabase-js#1029 so it should be available in supabase-js v2.42.7, thanks for reporting this!
@kangmingtay Still getting this issue (caused by upgrading from 2.38.4 to 2.43.2)
I'm actually getting it in a NextJS route-handler. But seems to be essentially the same problem, although the solution of explicitly passing the JWT isn't relevant given the supabase ssr client uses cookies.
Can make a separate issue if needed
I think i have the same issue
I also have this same issue with my web app. My web app is builtwith Remix framework
I only see the error:AuthSessionMissingError: Auth session missing!
when I try to get my user using: supabase.auth.getUser();
I am able to sign up and login successfully but when I go to fetch the newly logged in user, all I get is null.
Additionally I am using supabase from the sever side, supabase/ssr and not supabase/js
I've created a new issue here supabase/auth-js#948
Facing this error still AuthSessionMissingError: Auth session missing!
at http://localhost:3000/static/js/bundle.js:79331:20
Steps followed -
(1) Add Client ID and Secret on Supabase Google Auth Provider - Done
(2) Add Javascript origin - Done - http://localhost:3000/
(3) Add Redirect URI - Done - http://localhost:3000/auth/v1/callback and https://my-domain.supabase.co/auth/v1/callback
(4) Add code for onAuthStateChange
- Done
(5) Try using const { data: { session } } = await supabase.auth.getSession()
- Done - Doesn't work
(6) Try using const { data: { user } } = await supabase.auth.getUser()
- Done - Doesn't work
(7) Try with different gotrue-js
version - Done - "@supabase/supabase-js": {
"@supabase/gotrue-js": "2.43.1"
}
(8) Try on Firefox - Done - This works fine , so on Chrome is the problem
Same issue even with Azure
Although login happens, cannot get the session/user
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