Skip to content
Migrating from NextAuth.js v4? Read our migration guide.
Getting Started
Providers
Tiktok

TikTok Provider

Resources

Setup

Callback URL

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

Environment Variables

AUTH_TIKTOK_ID
AUTH_TIKTOK_SECRET

Configuration

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

Notes

  • Production applications cannot use localhost URLs to sign in with Tiktok. You need add the domain and Callback/Redirect url’s to your Tiktok app and have them review and approved by the Tiktok Team.
  • Email address is not supported by Tiktok.
  • Client_ID will be the Client Key in the Tiktok Application
Auth.js © Balázs Orbán and Team - 2024