Skip to content

Is it possible for custom sign in form to be a component instead of a page? #1426

Answered by StefanSelfTaught
djvid asked this question in Help
Discussion options

You must be logged in to vote

This will not redirect to signIn page and if you pass redirect: false it won't redirect after login.

signIn('credentials', { username: 'jsmith', password: '1234', redirect: false })

See more here: https://next-auth.js.org/getting-started/client#signin

Replies: 1 comment 3 replies

Comment options

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

@StefanSelfTaught
Comment options

@djvid
Comment options

Answer selected by balazsorban44
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