Feature request: Sign up user without creating session #1063
Labels
auth
This issue or pull request is related to authentication
blocked
This issue is blocked by another issue
enhancement
New feature or request
Is your feature request related to a problem? Please describe.
In my use case I want users to sign up, but not get signed in immediately. My application reacts on the AuthChangeEvent, but needs data from the DB that's not immediately present at the time when signUp is called.
Describe the solution you'd like
A possible solution could be adding a
createSession
parameter. Devs could decide if a session will be created after sign up.Because login credentials are still present I could just call
signInWithPassword()
after all processing is done to get the session.Describe alternatives you've considered
Another solution for my user case would be passing a UUID to the signUp method so that I could prefill my user table with all necessary data and then call signUp but assign a self chosen ID to the AuthUser.
I could also create a user with an edge function, but that seems to be unnecessary overhead.
The text was updated successfully, but these errors were encountered: