portfolio/auth.ts
Ryan Freeman f6331e435a
All checks were successful
Build And Publish / BuildAndPublish (push) Successful in 3m5s
Update auth callbacks
2025-03-21 21:16:13 +00:00

16 lines
397 B
TypeScript

import NextAuth from 'next-auth'
import GitHub from 'next-auth/providers/github'
export const {handlers, signIn, signOut, auth} = NextAuth({
providers: [
GitHub({
clientId: process.env.GITHUB_CLIENT_ID,
clientSecret: process.env.GITHUB_SECRET
})
],
callbacks: {
async redirect({url, baseUrl}) {
return url
}
}
})