Twitch
Source URL: https://next-auth.js.org/providers/twitch
Twitch | NextAuth.js
Section titled “Twitch | NextAuth.js”Version: v4
Documentation
Section titled “Documentation”https://dev.twitch.tv/docs/authentication
Configuration
Section titled “Configuration”https://dev.twitch.tv/console/apps
Add the following redirect URL into the console http://<your-next-app-url>/api/auth/callback/twitch
Options
Section titled “Options”The Twitch Provider comes with a set of default options:
You can override any of the options to suit your own use case.
Example
Section titled “Example” import TwitchProvider from "next-auth/providers/twitch"; ... providers: [ TwitchProvider({ clientId: process.env.TWITCH_CLIENT_ID, clientSecret: process.env.TWITCH_CLIENT_SECRET }) ] ...