mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
* chore: dev -> dev/nextjs * chore: move to /examples * chore: move to playgrounds, add dev/sveltekit * Update sync.yml * chore: dev scripts
18 lines
470 B
TypeScript
18 lines
470 B
TypeScript
import { NuxtAuthHandler } from "@/lib/auth/server"
|
|
import GithubProvider from "@auth/core/providers/github"
|
|
import type { AuthOptions } from "@auth/core"
|
|
|
|
const runtimeConfig = useRuntimeConfig()
|
|
|
|
export const authOptions: AuthOptions = {
|
|
secret: runtimeConfig.secret,
|
|
providers: [
|
|
GithubProvider({
|
|
clientId: runtimeConfig.github.clientId,
|
|
clientSecret: runtimeConfig.github.clientSecret,
|
|
}),
|
|
],
|
|
}
|
|
|
|
export default NuxtAuthHandler(authOptions)
|