Comments (10)
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.
from gotrue-dart.
@chimon2000
Yeah, this is not a bug on the client side, but on the server side. Unfortunately at the moment, it looks like we would have to wait for the issue on the server side to get resolved.
from gotrue-dart.
Can you try to call SupabaseAuth.instance.auth.user
?
from gotrue-dart.
Can you try to call
SupabaseAuth.instance.auth.user
?
When attempting to reference the user value either from the auth instance or the session it was coming back as null.
from gotrue-dart.
any update on this ??
from gotrue-dart.
@Neerajdana
This issue is cause by supabase/auth#141 so unfortunately no updates at the moment.
from gotrue-dart.
from gotrue-dart.
So based on the last comment linked above, should the Supabase clients internally call GET /user
in verifyOTP
so the users of the client libraries don't need to work around the issue?
from gotrue-dart.
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
from gotrue-dart.
It looks like this is back on the latest master:
I/flutter ( 9428): ***** Supabase init completed Instance of 'Supabase'
I/flutter ( 9428): Current session is missing data.
from gotrue-dart.
Related Issues (20)
- Regexp with positive lookbehind are not fully supported by all browser
- Token is returned as URI fragment with a `#`, but is expected as query parameters HOT 4
- Update signUp to use named parameters HOT 1
- Callback of `onAuthStateChange()` is not called when `recoverSession()` is used HOT 8
- Need more information about oAuth2 HOT 8
- Change Provider enum to ProviderEnum in order to avoid name conflicts with riverpod HOT 2
- Apple sign in support? HOT 2
- Delete User Account HOT 4
- Support native auth on mobile devices HOT 19
- Missing documentation in comparison to javascript HOT 3
- Implement setSession API from gotrue-js client
- Missing keys in User.toJson()
- currentSession.user is not updated in GoTrueClient.update()
- Release new version because gotrue:0.1.2 is not exporting gotrue_error.dart class HOT 1
- Wrong `Authorization` header is used when refreshing tokens HOT 1
- SignUp does not return Session/User object HOT 1
- type `Null` is not a subtype of type `Map<String, dynamic>` in type cast HOT 1
- No persist storage provided HOT 1
- Persistant user session HOT 11
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gotrue-dart.