[PR #7028] feat: add Yandex social provider #7033

Open
opened 2026-03-13 13:21:55 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/7028
Author: @vladflotsky
Created: 12/27/2025
Status: 🔄 Open

Base: canaryHead: feat/yandex-social-provider


📝 Commits (9)

  • 003744e feat: add Yandex social provider
  • 4fd3bce Merge branch 'canary' into feat/yandex-social-provider
  • 1b7436a refactor: fix lint
  • 3d10103 Merge remote-tracking branch 'origin/feat/yandex-social-provider' into feat/yandex-social-provider
  • 9117f9d Update docs/components/builder/social-provider.tsx
  • 460fdac fix: include login as fallback for user name
  • e53324f Merge remote-tracking branch 'origin/feat/yandex-social-provider' into feat/yandex-social-provider
  • b1ebbf7 Update packages/core/src/social-providers/yandex.ts
  • 1b4ac98 Merge branch 'canary' into feat/yandex-social-provider

📊 Changes

5 files changed (+213 additions, -0 deletions)

View changed files

📝 docs/components/builder/social-provider.tsx (+24 -0)
📝 docs/components/sidebar-content.tsx (+16 -0)
docs/content/docs/authentication/yandex.mdx (+48 -0)
📝 packages/core/src/social-providers/index.ts (+3 -0)
packages/core/src/social-providers/yandex.ts (+122 -0)

📄 Description

Updated https://github.com/better-auth/better-auth/pull/1875


Summary by cubic

Add Yandex as a social provider to enable sign-in with Yandex ID, with docs and UI icons. This adds core OAuth support, profile mapping (with name fallback), and a docs page.

  • New Features

    • Core provider with default scopes: login:info, login:email, login:avatar.
    • OAuth endpoints: authorize (oauth.yandex.com/authorize), token (oauth.yandex.ru/token), refresh (oauth.yandex.com/token); user info from login.yandex.ru/info.
    • Maps profile to id, name (falls back to login), email, emailVerified, image; provider exported, icon added, docs sidebar entry created.
  • Migration

    • Create Yandex app and set redirect URL: /api/auth/callback/yandex.
    • Add to betterAuth: socialProviders.yandex with clientId and clientSecret.
    • Sign in via authClient.signIn.social({ provider: "yandex" }).

Written for commit 1b4ac98ba0. Summary will update automatically on new commits.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/7028 **Author:** [@vladflotsky](https://github.com/vladflotsky) **Created:** 12/27/2025 **Status:** 🔄 Open **Base:** `canary` ← **Head:** `feat/yandex-social-provider` --- ### 📝 Commits (9) - [`003744e`](https://github.com/better-auth/better-auth/commit/003744e573f49cf3274aa6ebc9b074ec912a8007) feat: add Yandex social provider - [`4fd3bce`](https://github.com/better-auth/better-auth/commit/4fd3bced686d2a21f4f1980035f610d9c2cdc39a) Merge branch 'canary' into feat/yandex-social-provider - [`1b7436a`](https://github.com/better-auth/better-auth/commit/1b7436af5752233072a3842306e3a216866d1603) refactor: fix lint - [`3d10103`](https://github.com/better-auth/better-auth/commit/3d10103875fd05233ee4f86e5b1c61c4b9d808df) Merge remote-tracking branch 'origin/feat/yandex-social-provider' into feat/yandex-social-provider - [`9117f9d`](https://github.com/better-auth/better-auth/commit/9117f9d3d92e3847c41337c514fc5a5348bf4cd0) Update docs/components/builder/social-provider.tsx - [`460fdac`](https://github.com/better-auth/better-auth/commit/460fdaca91a60ee916cbc8c218293c2b64b1883e) fix: include login as fallback for user name - [`e53324f`](https://github.com/better-auth/better-auth/commit/e53324f16196bb60e90abc120e5c7704aa6a012a) Merge remote-tracking branch 'origin/feat/yandex-social-provider' into feat/yandex-social-provider - [`b1ebbf7`](https://github.com/better-auth/better-auth/commit/b1ebbf7168cabd9af4b641be8ace857f59179c41) Update packages/core/src/social-providers/yandex.ts - [`1b4ac98`](https://github.com/better-auth/better-auth/commit/1b4ac98ba0fbcd921e330e29088fb46fc3f6ef7f) Merge branch 'canary' into feat/yandex-social-provider ### 📊 Changes **5 files changed** (+213 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/builder/social-provider.tsx` (+24 -0) 📝 `docs/components/sidebar-content.tsx` (+16 -0) ➕ `docs/content/docs/authentication/yandex.mdx` (+48 -0) 📝 `packages/core/src/social-providers/index.ts` (+3 -0) ➕ `packages/core/src/social-providers/yandex.ts` (+122 -0) </details> ### 📄 Description Updated https://github.com/better-auth/better-auth/pull/1875 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Add Yandex as a social provider to enable sign-in with Yandex ID, with docs and UI icons. This adds core OAuth support, profile mapping (with name fallback), and a docs page. - **New Features** - Core provider with default scopes: login:info, login:email, login:avatar. - OAuth endpoints: authorize (oauth.yandex.com/authorize), token (oauth.yandex.ru/token), refresh (oauth.yandex.com/token); user info from login.yandex.ru/info. - Maps profile to id, name (falls back to login), email, emailVerified, image; provider exported, icon added, docs sidebar entry created. - **Migration** - Create Yandex app and set redirect URL: /api/auth/callback/yandex. - Add to betterAuth: socialProviders.yandex with clientId and clientSecret. - Sign in via authClient.signIn.social({ provider: "yandex" }). <sup>Written for commit 1b4ac98ba0fbcd921e330e29088fb46fc3f6ef7f. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-03-13 13:21:55 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#7033