-
-
Notifications
You must be signed in to change notification settings - Fork 36
"Current session is missing data" when restoring a phone user #29
Comments
Can you try to call |
Thank you @chimon2000 for reporting this issue. This bug seems to be related to supabase/auth#141, where upon verifying via OTP, user object is not being returned from the server. |
When attempting to reference the user value either from the auth instance or the session it was coming back as null. |
@chimon2000 |
any update on this ?? |
@Neerajdana |
So based on the last comment linked above, should the Supabase clients internally call |
According to supabase/auth#141 (comment), #53 should fix this issue, no? Edit: actually no. This issue is being caused because we check if the user is not null. https://github.com/supabase-community/gotrue-dart/blob/main/lib/src/gotrue_client.dart#L315-L320 The same seems to happen in the js equivalent package: https://github.com/supabase/gotrue-js/blob/master/src/GoTrueClient.ts#L635-L638 |
It looks like this is back on the latest master:
|
Bug report
Describe the bug
When attempting to restore the session, the user object is is returning null which causes the session to not be loaded.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
verifyOTP
recoverSession
directlyExpected behavior
The user information should be returned when a user has successfully logged in using an SMS token. I noticed that this is not the case, when trying to print out the user info after a login, but I ignored it.
Screenshots
n/a
System information
Additional context
n/a
The text was updated successfully, but these errors were encountered: