Comments (1)
Thanks @krsikarya for opening this issue.
I was going to say we do have a dart documentation here, but found out that the dart doc also says the same thing If "Email Confirmations" is turned on, a user is returned but session will be null
, which is not accurate, and I will submit a PR to fix it.
Currently with the Dart library, you will not receive user or session object when the email confirmation is turned on as you can see here. This is probably not the ideal behavior, so maybe we can discuss here how we can solve this.
We have discussed how to fix this in this issue before by separating the user
object within GotrueSessionResponse
like the following. @bdlukaa what do you think about this approach?
class GotrueSessionResponse extends GotrueResponse {
Session? data;
String? provider;
String? url;
User? user;
GotrueSessionResponse({
this.data,
this.provider,
this.url,
User? user,
GotrueError? error,
}) : this.user = user ?? data?user, super(error: error);
}
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
- "Current session is missing data" when restoring a phone user HOT 10
- 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
- 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.