[PR #7028] [CLOSED] feat: add Yandex social provider #15280

Closed
opened 2026-04-13 09:56:19 -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: Closed

Base: mainHead: feat/yandex-social-provider


📝 Commits (10+)

  • fcab5a8 fix: add helper types to exports (#6479)
  • 1496999 Revert "ci: remove NODE_AUTH_TOKEN during publish (#6475)"
  • 2000fd6 chore: release v1.4.5
  • f27a868 refactor: move adapter-factory to core (#6477)
  • bd98735 fix: avoid throwing on client side (#6361)
  • ed825d2 docs: correct spelling of 'Tiktok' to 'TikTok' (#6485)
  • 89030aa fix(db): correctly unwrap validator result in schema parsing (#6488)
  • afd6398 docs: add middleware section for TanStack Start (#6495)
  • 630c510 fix: export organization plugin types (#6490)
  • aeb0b28 fix(deps): update dependency next to v16.0.7 [security] (#6501)

📊 Changes

22 files changed (+579 additions, -237 deletions)

View changed files

📝 docs/components/builder/social-provider.tsx (+24 -0)
📝 docs/components/community-plugins-table.tsx (+10 -8)
📝 docs/components/sidebar-content.tsx (+16 -0)
docs/content/docs/authentication/yandex.mdx (+48 -0)
📝 docs/content/docs/plugins/community-plugins.mdx (+2 -4)
📝 docs/content/docs/plugins/dodopayments.mdx (+108 -2)
📝 docs/content/docs/plugins/multi-session.mdx (+59 -1)
📝 docs/content/docs/plugins/sso.mdx (+7 -0)
📝 packages/better-auth/package.json (+3 -3)
📝 packages/better-auth/src/plugins/multi-session/client.ts (+22 -2)
📝 packages/cli/package.json (+2 -2)
📝 packages/core/package.json (+3 -3)
📝 packages/core/src/social-providers/index.ts (+3 -0)
packages/core/src/social-providers/yandex.ts (+120 -0)
📝 packages/expo/package.json (+1 -1)
📝 packages/oauth-provider/package.json (+2 -2)
📝 packages/passkey/package.json (+2 -2)
📝 packages/scim/package.json (+2 -2)
📝 packages/sso/package.json (+2 -2)
📝 packages/stripe/package.json (+1 -1)

...and 2 more files

📄 Description

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


Summary by cubic

Adds Yandex as a social provider with a complete OAuth flow, profile mapping, docs, and icons. Also adds schema inference options to the multi-session client plugin.

  • New Features

    • Yandex provider
      • Default scopes: login:info, login:email, login:avatar.
      • OAuth: 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 (display_name → real_name → first_name → login), email (default_email or first email), emailVerified, and avatar when available.
      • Exported in core, icons added to the docs UI, and a docs page with sidebar entry.
    • Multi-session client
      • New optional schema config to infer additional user/session fields; types updated for better client/server parity.
  • Migration

    • Create a Yandex app and set the redirect URL to /api/auth/callback/yandex (for local dev: http://localhost:3000/api/auth/callback/yandex).
    • Configure in your auth: socialProviders.yandex with clientId and clientSecret.
    • Sign in with authClient.signIn.social({ provider: "yandex" }).

Written for commit 6790685fb8. Summary will update 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:** ❌ Closed **Base:** `main` ← **Head:** `feat/yandex-social-provider` --- ### 📝 Commits (10+) - [`fcab5a8`](https://github.com/better-auth/better-auth/commit/fcab5a84cd8fd5b8b239a21c929e0e24d1f9c035) fix: add helper types to exports (#6479) - [`1496999`](https://github.com/better-auth/better-auth/commit/14969994c440090aef58e636cf3e3f36e6565ffe) Revert "ci: remove `NODE_AUTH_TOKEN` during publish (#6475)" - [`2000fd6`](https://github.com/better-auth/better-auth/commit/2000fd63d072e51f653aec356afd3308bba7946b) chore: release v1.4.5 - [`f27a868`](https://github.com/better-auth/better-auth/commit/f27a8680ec8b277ad9cc455e460e843c6e30fd73) refactor: move adapter-factory to core (#6477) - [`bd98735`](https://github.com/better-auth/better-auth/commit/bd98735f2a0e63a954f71055e3125cda70cc5b05) fix: avoid throwing on client side (#6361) - [`ed825d2`](https://github.com/better-auth/better-auth/commit/ed825d273b7ed90ddb187320e93ce214370d21a8) docs: correct spelling of 'Tiktok' to 'TikTok' (#6485) - [`89030aa`](https://github.com/better-auth/better-auth/commit/89030aab5038e36394fc4e91b487b2dc55acf4a4) fix(db): correctly unwrap validator result in schema parsing (#6488) - [`afd6398`](https://github.com/better-auth/better-auth/commit/afd63982fefac566b4cee23b3c00388419a7fdc4) docs: add middleware section for TanStack Start (#6495) - [`630c510`](https://github.com/better-auth/better-auth/commit/630c5108cb45ae4d450a35af8fe83d98f7c9d137) fix: export organization plugin types (#6490) - [`aeb0b28`](https://github.com/better-auth/better-auth/commit/aeb0b28827cc66e161e681f94a65fe1e77a2d713) fix(deps): update dependency next to v16.0.7 [security] (#6501) ### 📊 Changes **22 files changed** (+579 additions, -237 deletions) <details> <summary>View changed files</summary> 📝 `docs/components/builder/social-provider.tsx` (+24 -0) 📝 `docs/components/community-plugins-table.tsx` (+10 -8) 📝 `docs/components/sidebar-content.tsx` (+16 -0) ➕ `docs/content/docs/authentication/yandex.mdx` (+48 -0) 📝 `docs/content/docs/plugins/community-plugins.mdx` (+2 -4) 📝 `docs/content/docs/plugins/dodopayments.mdx` (+108 -2) 📝 `docs/content/docs/plugins/multi-session.mdx` (+59 -1) 📝 `docs/content/docs/plugins/sso.mdx` (+7 -0) 📝 `packages/better-auth/package.json` (+3 -3) 📝 `packages/better-auth/src/plugins/multi-session/client.ts` (+22 -2) 📝 `packages/cli/package.json` (+2 -2) 📝 `packages/core/package.json` (+3 -3) 📝 `packages/core/src/social-providers/index.ts` (+3 -0) ➕ `packages/core/src/social-providers/yandex.ts` (+120 -0) 📝 `packages/expo/package.json` (+1 -1) 📝 `packages/oauth-provider/package.json` (+2 -2) 📝 `packages/passkey/package.json` (+2 -2) 📝 `packages/scim/package.json` (+2 -2) 📝 `packages/sso/package.json` (+2 -2) 📝 `packages/stripe/package.json` (+1 -1) _...and 2 more files_ </details> ### 📄 Description Updated https://github.com/better-auth/better-auth/pull/1875 <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Adds Yandex as a social provider with a complete OAuth flow, profile mapping, docs, and icons. Also adds schema inference options to the `multi-session` client plugin. - **New Features** - Yandex provider - Default scopes: login:info, login:email, login:avatar. - OAuth: 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 (display_name → real_name → first_name → login), email (default_email or first email), emailVerified, and avatar when available. - Exported in core, icons added to the docs UI, and a docs page with sidebar entry. - Multi-session client - New optional schema config to infer additional user/session fields; types updated for better client/server parity. - **Migration** - Create a Yandex app and set the redirect URL to /api/auth/callback/yandex (for local dev: http://localhost:3000/api/auth/callback/yandex). - Configure in your auth: socialProviders.yandex with clientId and clientSecret. - Sign in with authClient.signIn.social({ provider: "yandex" }). <sup>Written for commit 6790685fb82e227752bac984a747c6a3fce2e5af. Summary will update 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-04-13 09:56:19 -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#15280