We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We want to send some parameters to the signIn callback in order to determine if the user has accepted the terms and conditions
I've found a way on next-auth repo: send param: await signIn( 'email', { email, redirect: false }, { username: 'example-username' } );
await signIn( 'email', { email, redirect: false }, { username: 'example-username' } );
read param: async signIn({ user, account, profile, email, credentials }) { console.log(${req.query.username}) // example-username }
async signIn({ user, account, profile, email, credentials }) { console.log(${req.query.username}) // example-username }
But I cannot test because I don't have access to the h3 event or cookies
expose the h3 event or add a way to send parameters more easily
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Describe the feature
We want to send some parameters to the signIn callback in order to determine if the user has accepted the terms and conditions
I've found a way on next-auth repo:
send param:
await signIn( 'email', { email, redirect: false }, { username: 'example-username' } );
read param:
async signIn({ user, account, profile, email, credentials }) { console.log(${req.query.username}) // example-username }
But I cannot test because I don't have access to the h3 event or cookies
How would you implement this?
expose the h3 event or add a way to send parameters more easily
Additional information
Provider
The text was updated successfully, but these errors were encountered: