mirror of
https://github.com/SrIzan10/next-auth.git
synced 2026-05-01 10:55:20 +00:00
* bump Nuxt to 3.5.1 * follow playground package names * chore: update nuxt playground scripts * fix: imports and types * fix: more nuxt type imports * fix: nuxt auth options types * fix: nuxt client fetch types
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 { AuthConfig } from "@auth/core"
|
|
|
|
const runtimeConfig = useRuntimeConfig()
|
|
|
|
export const authOptions = {
|
|
secret: runtimeConfig.secret,
|
|
providers: [
|
|
GithubProvider({
|
|
clientId: runtimeConfig.github.clientId,
|
|
clientSecret: runtimeConfig.github.clientSecret,
|
|
}),
|
|
],
|
|
} as AuthConfig
|
|
|
|
export default NuxtAuthHandler(authOptions)
|