Trakt
Source URL: https://next-auth.js.org/providers/trakt
Trakt | NextAuth.js
Section titled “Trakt | NextAuth.js”Version: v4
Documentation
Section titled “Documentation”https://trakt.docs.apiary.io/#reference/authentication-oauth
Configuration
Section titled “Configuration”If you’re using the api in production by calling api.trakt.tv. Follow the example below. If you wish to develop on Trakt’s sandbox environment by calling api-staging.trakt.tv. Use the default options with the changed the URLs.
Start by creating an OAuth app on Trakt for production or development. Then set the Client ID and Client Secret as TRAKT_ID and TRAKT_SECRET in .env.
Options
Section titled “Options”The Trakt 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” providers: [ TraktProvider({ clientId: process.env.TRAKT_ID, clientSecret: process.env.TRAKT_SECRET, }), ]danger
Trakt does not allow hotlinking images. Even the authenticated user’s profie picture.
danger
Trakt does not supply the authenticated user’s email.