Skip to content
Discussion options

You must be logged in to vote

Check out the docs https://next-auth.js.org/providers/credentials

you can submit any form fields you want to, but the object has to be flat and defined in the credentials field in your provider config.

Everything sent this way will be passed to the authorize callback as the first argument:

https://github.com/nextauthjs/next-auth/blob/main/src/server/routes/callback.js#L334-L340

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@sheptang
Comment options

@balazsorban44
Comment options

@sheptang
Comment options

Answer selected by sheptang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants