Trakt Provider
Resources
Setup
Callback URL
https://example.com/api/auth/callback/traktEnvironment Variables
AUTH_TRAKT_ID AUTH_TRAKT_SECRETConfiguration
/auth.ts
import NextAuth from "next-auth" import Trakt from "next-auth/providers/trakt" export const { handlers, auth, signIn, signOut } = NextAuth({ providers: [Trakt], })Notes
- If you’re using the api in production by calling
api.trakt.tv. Follow the example. If you wish to develop on Trakt’s sandbox environment by callingapi-staging.trakt.tv, change the URLs. - Trakt does not allow hotlinking images. Even the authenticated user’s profile picture.
- Trakt does not supply the authenticated user’s email.