Skip to content
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

auth.signup returning unexpected values #197

Closed
joshua1 opened this issue Dec 30, 2021 · 1 comment
Closed

auth.signup returning unexpected values #197

joshua1 opened this issue Dec 30, 2021 · 1 comment
Labels
sdk SDK package

Comments

@joshua1
Copy link

joshua1 commented Dec 30, 2021

The auth.signUp method (with email and password parameters keeps returning

{session:null,mfa:null}

with the user account created successfully. which doesn't make any sense, as one would need the userId returned as part of the session.user object to enable the saving of other user data in public tables.
This is the case for several accounts created

@plmercereau plmercereau transferred this issue from nhost/nhost-js Feb 15, 2022
@plmercereau plmercereau added the sdk SDK package label Feb 15, 2022
@plmercereau
Copy link
Contributor

Hello Joshua,
This is the normal behaviour when an user registers, but cannot sign in yet as their email needs to be verified.

It is possible to make email verification optional:

  • when using Hasura Auth: set the AUTH_EMAIL_SIGNIN_EMAIL_VERIFIED_REQUIRED environment variable to false
  • when using Nhost: untick this option in Users -> Loggin settings: image

I agree this is quite confusing, and we are thinking about how to improve the API without introducing a breaking change.

I hope it helps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
sdk SDK package
Projects
None yet
Development

No branches or pull requests

2 participants