Created
February 12, 2022 22:34
-
-
Save samyok/07c316e5d3cedcea4c08940609eb4c64 to your computer and use it in GitHub Desktop.
nextauth
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import NextAuth from "next-auth" | |
import GithubProvider from "next-auth/providers/github" | |
export default NextAuth({ | |
// Configure one or more authentication providers | |
providers: [ | |
GithubProvider({ | |
clientId: process.env.GITHUB_ID, | |
clientSecret: process.env.GITHUB_SECRET, | |
}), | |
// ...add more providers here | |
], | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment