hermes-web/auth.config.ts

17 lines
384 B
TypeScript
Raw Permalink Normal View History

2024-01-02 02:26:20 -05:00
import Twitch from "next-auth/providers/twitch"
import type { NextAuthConfig } from "next-auth"
export default {
providers: [
Twitch({
clientId: process.env.TWITCH_CLIENT_ID,
clientSecret: process.env.TWITCH_CLIENT_SECRET,
authorization: {
params: {
scope: "openid user:read:email",
},
}
})
],
} satisfies NextAuthConfig