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

Yandex Provider

Resources

Setup

Callback URL

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

Environment Variables

AUTH_YANDEX_ID
AUTH_YANDEX_SECRET

Configuration

/auth.ts
import NextAuth from "next-auth"
import Yandex from "next-auth/providers/yandex"
 
export const { handlers, auth, signIn, signOut } = NextAuth({
  providers: [Yandex],
})
Auth.js © Balázs Orbán and Team - 2024