Skip to content
The Auth.js project is now part of Better Auth.

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 © Better Auth Inc. - 2025