's'
This commit is contained in:
20
app/api/auth/[...nextauth]/auth.ts
Normal file
20
app/api/auth/[...nextauth]/auth.ts
Normal file
@@ -0,0 +1,20 @@
|
||||
import type { NextAuthConfig } from 'next-auth'
|
||||
import GithubProvider from 'next-auth/providers/github'
|
||||
|
||||
export const authConfig: NextAuthConfig = {
|
||||
providers: [
|
||||
GithubProvider({
|
||||
clientId: process.env.GITHUB_CLIENT_ID!,
|
||||
clientSecret: process.env.GITHUB_SECRET!,
|
||||
authorization: {
|
||||
params: { scope: 'repo' }
|
||||
}
|
||||
})
|
||||
],
|
||||
secret: process.env.NEXTAUTH_SECRET,
|
||||
session: {
|
||||
strategy: 'jwt'
|
||||
}
|
||||
}
|
||||
|
||||
export default authConfig
|
||||
Reference in New Issue
Block a user