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

Need a way to read cookies / access h3 event #813

Open
1 of 5 tasks
zecar opened this issue Jul 17, 2024 · 0 comments
Open
1 of 5 tasks

Need a way to read cookies / access h3 event #813

zecar opened this issue Jul 17, 2024 · 0 comments
Labels
enhancement An improvement that needs to be added pending An issue waiting for triage

Comments

@zecar
Copy link

zecar commented Jul 17, 2024

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

  • Would you be willing to help implement this feature?

Provider

  • AuthJS
  • Local
  • Refresh
  • New Provider
@zecar zecar added enhancement An improvement that needs to be added pending An issue waiting for triage labels Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement An improvement that needs to be added pending An issue waiting for triage
Projects
None yet
Development

No branches or pull requests

1 participant