Add user company information when signing up with email link #4134
Unanswered
daniellin215
asked this question in
Help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I have an admin dashboard where a signed in user can invite new users through the email sign in provider. But I am not sure how to pass in parameters such as
companyName
orcompanyId
into the sign in function so that when the invited user signs in through their email, they will automatically be in the same company as the person who invited them in the first place. I tried playing around by settingcallBackUrl
insignIn('email') to something like
baseUrl/api/auth/callback/email?company=abcbut it did not work. I am redirected to
http://localhost:3000/api/auth/error?error=Verification` instead.Beta Was this translation helpful? Give feedback.
All reactions