Skip to content
Migrating from NextAuth.js v4? Read our migration guide.

Twitch Provider

Resources

Setup

Callback URL

https://example.com/api/auth/callback/twitch

Environment Variables

AUTH_TWITCH_ID
AUTH_TWITCH_SECRET

Configuration

/auth.ts
import NextAuth from "next-auth"
import Twitch from "next-auth/providers/twitch"
 
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [Twitch],
})

Notes

  • Twitch will redirect to the first redirect URI if multiple are added.
Auth.js © Balázs Orbán and Team - 2024