Skip to content
Discussion options

You must be logged in to vote

(sigh) putting this answer for anyone who's looking for the same thing and hit this question.

I coulda had a V8.

It's as simple as:

`import { signIn } from "next-auth/react";

...

<button onClick={() => signIn('twitter')}>Sign in

`

where you can replace twitter with whatever your provider is.

You can also import getProviders if you have more than one and map() them on the page:

Example here:

https://next-auth.js.org/configuration/pages#oauth-sign-in

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by richardpickett
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant