Skip to content
This repository has been archived by the owner on May 13, 2023. It is now read-only.

BREAKING: user will be returned when signing up with auto confirm off #63

Merged
merged 7 commits into from Mar 6, 2022

Conversation

dshukertjr
Copy link
Member

Currently, with the Dart SDK, when a user signs up and the auto confirm is turned off, the SDK does not returns null for both user and session. This is not the case in js library, so this PR attempts to follow the same behavior in Dart SDK as well.

Closes #54
Closes supabase/supabase-flutter#39

@DanMossa
Copy link
Contributor

DanMossa commented Mar 1, 2022

This is a breaking change, correct?

@dshukertjr
Copy link
Member Author

@DanMossa Yup, it is. Thanks for flagging it!

@dshukertjr dshukertjr changed the title feat: user will be returned when signing up with auto confirm off BREAKING: user will be returned when signing up with auto confirm off Mar 3, 2022
@dshukertjr dshukertjr requested a review from bdlukaa March 3, 2022 23:47
@dshukertjr dshukertjr marked this pull request as ready for review March 3, 2022 23:48
@bdlukaa
Copy link
Contributor

bdlukaa commented Mar 4, 2022

I agree with this behavior. There is a flag to check if the email isn't verified, which allows this behavior to be acceptable

@dshukertjr dshukertjr merged commit 62569cc into supabase:main Mar 6, 2022
@dshukertjr dshukertjr deleted the feat/sessionUser branch March 6, 2022 13:10
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SignUp does not return Session/User object auth.signUp not returning the data.user
3 participants