-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SignUp return both Session and User #18
Comments
@fplaras To clarify - A |
@acupofjose yes, because when a user is signed up and their email is not confirmed(with requirement) session is null but if I could retrieve the user data that was created I can insert for example user profile records that reference the new user uuid but if the session is null I would have to wait for the email confirmation to go through to then retrieve the user based on the access token to then create the profile and insert profile records. |
Ah! I see - I'll look into it, let me make an issue on the Gotrue page |
@fplaras |
Sweet! Thank you |
There is a use case in the documentation that indicates either object is returned based on email confirmation requirement but the current signup() only returns the Session object.
Ref: https://supabase.com/docs/reference/javascript/auth-signup
I am thinking it could return a Tuple that includes the User and Session objects.
The text was updated successfully, but these errors were encountered: