[GH-ISSUE #5055] Social and SSO auth callback fails after version 1.3.13 #10154

Closed
opened 2026-04-13 06:06:28 -05:00 by GiteaMirror · 10 comments
Owner

Originally created by @rohovskoi on GitHub (Oct 2, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/5055

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

To reproduce you need to downgrade to 1.3.13 and try social auth and sso login with Google OIDC or any other provider (using SSO plugin).

Current vs. Expected behavior

This is what browser shows after auth callback on 1.3.24

http://localhost:8080/api/error?error=state_mismatch sent back an error.

Error code: 404 Not Found

    Check to make sure you’ve typed the website address correctly.

On 1.3.13 callback works as expected and cookie session is set.

What version of Better Auth are you using?

1.3.24

System info

.

Which area(s) are affected? (Select all that apply)

Backend

Auth config (if applicable)


Additional context

No response

Originally created by @rohovskoi on GitHub (Oct 2, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/5055 ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce To reproduce you need to downgrade to 1.3.13 and try social auth and sso login with Google OIDC or any other provider (using SSO plugin). ### Current vs. Expected behavior This is what browser shows after auth callback on 1.3.24 ``` http://localhost:8080/api/error?error=state_mismatch sent back an error. Error code: 404 Not Found Check to make sure you’ve typed the website address correctly. ``` On 1.3.13 callback works as expected and cookie session is set. ### What version of Better Auth are you using? 1.3.24 ### System info ```bash . ``` ### Which area(s) are affected? (Select all that apply) Backend ### Auth config (if applicable) ```typescript ``` ### Additional context _No response_
GiteaMirror added the locked label 2026-04-13 06:06:28 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Oct 2, 2025):

This is a known breaking change in Better Auth 1.3.23 and later: the OAuth "state" parameter and its cookies must now be set on the client side, not the server. If you trigger social or SSO sign-in (like Google OIDC) from a server action or API route, you'll get a state_mismatch error on callback, and the session won't be set. The fix is to move your sign-in initiation (e.g., signIn() or equivalent) to the client side and use the authClient directly for social/SSO flows. Downgrading to 1.3.13 works because this requirement was introduced after that version. More details and solutions are discussed here and here.

Also, double-check your callback URL configuration: the OAuth provider's redirect URI should point to your API callback endpoint, but the callbackURL in your app code should point to a user-facing route, not the API endpoint, to avoid double-callbacks and 404s (details).

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

<!-- gh-comment-id:3363394233 --> @dosubot[bot] commented on GitHub (Oct 2, 2025): <!-- Answer --> This is a known breaking change in Better Auth 1.3.23 and later: the OAuth "state" parameter and its cookies must now be set on the client side, not the server. If you trigger social or SSO sign-in (like Google OIDC) from a server action or API route, you'll get a `state_mismatch` error on callback, and the session won't be set. The fix is to move your sign-in initiation (e.g., `signIn()` or equivalent) to the client side and use the `authClient` directly for social/SSO flows. Downgrading to 1.3.13 works because this requirement was introduced after that version. More details and solutions are discussed [here](https://github.com/better-auth/better-auth/issues/4969) and [here](https://github.com/better-auth/better-auth/issues/4998). Also, double-check your callback URL configuration: the OAuth provider's redirect URI should point to your API callback endpoint, but the `callbackURL` in your app code should point to a user-facing route, not the API endpoint, to avoid double-callbacks and 404s ([details](https://github.com/better-auth/better-auth/issues/3488)). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/7ac6bb45-95c5-4aa6-b154-1065ea063017?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/7ac6bb45-95c5-4aa6-b154-1065ea063017?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/7ac6bb45-95c5-4aa6-b154-1065ea063017?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/7ac6bb45-95c5-4aa6-b154-1065ea063017?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/7ac6bb45-95c5-4aa6-b154-1065ea063017?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/7ac6bb45-95c5-4aa6-b154-1065ea063017?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/7ac6bb45-95c5-4aa6-b154-1065ea063017?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/cdda13d9-dd27-4d31-b09a-5d8bec92de21/ask?utm_source=github)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/better-auth/better-auth/issues/5055)
Author
Owner

@rohovskoi commented on GitHub (Oct 2, 2025):

@dosu Can i set it without authClient on my client?

<!-- gh-comment-id:3363441575 --> @rohovskoi commented on GitHub (Oct 2, 2025): @dosu Can i set it without authClient on my client?
Author
Owner

@dosubot[bot] commented on GitHub (Oct 2, 2025):

No, in Better Auth v1.3.24+, you can't set up social or SSO authentication on the client without using authClient. The authClient is required because it handles the OAuth state parameter and cookie logic on the client side, which is necessary to avoid state_mismatch errors after the breaking change in v1.3.23+. There are no supported alternatives or lower-level APIs for this—authClient is the only way to correctly initiate these flows on the client. If you previously started social/SSO sign-in from the server, you'll need to move that logic to the client and use authClient directly.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

<!-- gh-comment-id:3363445698 --> @dosubot[bot] commented on GitHub (Oct 2, 2025): <!-- Answer --> No, in Better Auth v1.3.24+, you can't set up social or SSO authentication on the client without using authClient. The authClient is required because it handles the OAuth state parameter and cookie logic on the client side, which is necessary to avoid state_mismatch errors after the breaking change in v1.3.23+. There are no supported alternatives or lower-level APIs for this—authClient is the only way to correctly initiate these flows on the client. If you previously started social/SSO sign-in from the server, you'll need to move that logic to the client and use authClient directly. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/0faa4047-c910-4bbb-a6b9-21146c5b207e?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/0faa4047-c910-4bbb-a6b9-21146c5b207e?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/0faa4047-c910-4bbb-a6b9-21146c5b207e?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/0faa4047-c910-4bbb-a6b9-21146c5b207e?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/0faa4047-c910-4bbb-a6b9-21146c5b207e?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/0faa4047-c910-4bbb-a6b9-21146c5b207e?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/0faa4047-c910-4bbb-a6b9-21146c5b207e?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/cdda13d9-dd27-4d31-b09a-5d8bec92de21/ask?utm_source=github)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/better-auth/better-auth/issues/5055)
Author
Owner

@rohovskoi commented on GitHub (Oct 2, 2025):

@dosu

does this affect only social/SSO sign-in or all endpoints?

<!-- gh-comment-id:3363473425 --> @rohovskoi commented on GitHub (Oct 2, 2025): @dosu does this affect only social/SSO sign-in or all endpoints?
Author
Owner

@dosubot[bot] commented on GitHub (Oct 2, 2025):

This change only affects social and SSO sign-in flows that use OAuth or OIDC providers—specifically, any authentication flow that relies on the OAuth "state" parameter and its cookies. Other endpoints, like magic link or email/password authentication, are not impacted by this client-side state/cookie handling change in Better Auth v1.3.23+; issues and documentation consistently reference only social/SSO flows as affected.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

<!-- gh-comment-id:3363475574 --> @dosubot[bot] commented on GitHub (Oct 2, 2025): <!-- Answer --> This change only affects social and SSO sign-in flows that use OAuth or OIDC providers—specifically, any authentication flow that relies on the OAuth "state" parameter and its cookies. Other endpoints, like magic link or email/password authentication, are not impacted by this client-side state/cookie handling change in Better Auth v1.3.23+; issues and documentation consistently reference only social/SSO flows as affected. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/062ed457-5e9e-4e8b-92c1-59d7bbfac212?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/062ed457-5e9e-4e8b-92c1-59d7bbfac212?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/062ed457-5e9e-4e8b-92c1-59d7bbfac212?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/062ed457-5e9e-4e8b-92c1-59d7bbfac212?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/062ed457-5e9e-4e8b-92c1-59d7bbfac212?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/062ed457-5e9e-4e8b-92c1-59d7bbfac212?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/062ed457-5e9e-4e8b-92c1-59d7bbfac212?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/cdda13d9-dd27-4d31-b09a-5d8bec92de21/ask?utm_source=github)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/better-auth/better-auth/issues/5055)
Author
Owner

@rohovskoi commented on GitHub (Oct 2, 2025):

@dosu

show me how I correctly create authClient instance and then use these endpoints / methods.

<!-- gh-comment-id:3363479924 --> @rohovskoi commented on GitHub (Oct 2, 2025): @dosu show me how I correctly create authClient instance and then use these endpoints / methods.
Author
Owner

@dosubot[bot] commented on GitHub (Oct 2, 2025):

Here's how to correctly create an authClient instance and use it for social/SSO sign-in in Better Auth v1.3.24+:

  1. Install the client library:

    npm install better-auth/client
    
  2. Import and configure authClient:

    import { createAuthClient } from 'better-auth/client'
    import { genericOAuthClient } from 'better-auth/client/plugins'
    
    const authClient = createAuthClient({
      baseURL: 'https://your-auth-server.com/api/auth', // your API endpoint
      fetchOptions: { credentials: 'include' }, // ensures cookies are sent
      plugins: [genericOAuthClient()]
    })
    
  3. Initiate social/SSO sign-in (client-side only):

    // Example: Google sign-in button handler
    await authClient.signIn.social({
      provider: 'google',
      callbackURL: '/dashboard' // user-facing route after auth
    })
    

    You can use other providers by changing provider to e.g. 'github', 'microsoft', etc. Example.

  4. Session management:
    After sign-in, use the useSession hook (or method) from your authClient instance to access session data, loading state, and errors:

    const { data: session, isPending, error } = authClient.useSession()
    

Important config notes:

  • Your OAuth provider's redirect URI should be set to your API callback endpoint (e.g., /api/auth/oauth2/callback/google).
  • The callbackURL in your client code should be a user-facing route (e.g., /dashboard), not the API endpoint.
  • Make sure CORS and cookies are configured correctly: credentials: 'include' on the client, SameSite=None and Secure=true on the server.
  • The plugins array in your client config must match what's enabled on your backend.

Common pitfalls: Calling sign-in from the server or misconfiguring callback URLs will cause state_mismatch errors in v1.3.24+—always initiate social/SSO sign-in from the client using authClient. Reference

Let me know if you need a full example for a specific framework or provider!

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

<!-- gh-comment-id:3363492705 --> @dosubot[bot] commented on GitHub (Oct 2, 2025): <!-- Answer --> Here's how to correctly create an authClient instance and use it for social/SSO sign-in in Better Auth v1.3.24+: 1. **Install the client library**: ``` npm install better-auth/client ``` 2. **Import and configure authClient**: ```typescript import { createAuthClient } from 'better-auth/client' import { genericOAuthClient } from 'better-auth/client/plugins' const authClient = createAuthClient({ baseURL: 'https://your-auth-server.com/api/auth', // your API endpoint fetchOptions: { credentials: 'include' }, // ensures cookies are sent plugins: [genericOAuthClient()] }) ``` 3. **Initiate social/SSO sign-in (client-side only)**: ```typescript // Example: Google sign-in button handler await authClient.signIn.social({ provider: 'google', callbackURL: '/dashboard' // user-facing route after auth }) ``` You can use other providers by changing `provider` to e.g. `'github'`, `'microsoft'`, etc. [Example](https://github.com/better-auth/better-auth/blob/8fbb921fb319ba2e9d079ead0de545643fd595b9/demo/nextjs/components/sign-in.tsx). 4. **Session management**: After sign-in, use the `useSession` hook (or method) from your authClient instance to access session data, loading state, and errors: ```typescript const { data: session, isPending, error } = authClient.useSession() ``` **Important config notes**: - Your OAuth provider's redirect URI should be set to your API callback endpoint (e.g., `/api/auth/oauth2/callback/google`). - The `callbackURL` in your client code should be a user-facing route (e.g., `/dashboard`), not the API endpoint. - Make sure CORS and cookies are configured correctly: `credentials: 'include'` on the client, `SameSite=None` and `Secure=true` on the server. - The plugins array in your client config must match what's enabled on your backend. **Common pitfalls**: Calling sign-in from the server or misconfiguring callback URLs will cause `state_mismatch` errors in v1.3.24+—always initiate social/SSO sign-in from the client using authClient. [Reference](https://github.com/better-auth/better-auth/issues/4998) Let me know if you need a full example for a specific framework or provider! <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/aecfcb0a-b270-4689-a7c2-dcc455ab7908?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/aecfcb0a-b270-4689-a7c2-dcc455ab7908?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/aecfcb0a-b270-4689-a7c2-dcc455ab7908?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/aecfcb0a-b270-4689-a7c2-dcc455ab7908?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/aecfcb0a-b270-4689-a7c2-dcc455ab7908?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/aecfcb0a-b270-4689-a7c2-dcc455ab7908?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/aecfcb0a-b270-4689-a7c2-dcc455ab7908?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/cdda13d9-dd27-4d31-b09a-5d8bec92de21/ask?utm_source=github)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/better-auth/better-auth/issues/5055)
Author
Owner

@rohovskoi commented on GitHub (Oct 2, 2025):

@dosu

Social Auth Endpoints

    POST /api/auth/sign-in/social - Initiates social OAuth flow
    GET /api/auth/callback/{providerId} - Handles OAuth provider callbacks

SSO Plugin Endpoints

When using the SSO plugin, additional endpoints are added index.ts:80-96 :

    POST /api/auth/sso/register - Register OIDC/SAML providers
    GET /api/auth/sso/callback/{providerId} - Handle SSO callbacks
    GET /api/auth/sso/saml2/sp/metadata - SAML metadata endpoint
    POST /api/auth/sso/saml2/callback/{providerId} - SAML callback endpoint

Are all of these endpoints affected or only callback ones?

Which endpoint implementations can I leave for my server API to handle and which I MUST implement with authClient on the client (starting the call with it, instead of simple fetch('myBackendUrl/someBetterAuthEndpoint') ).

Keep in mind that I want to leave as much as possible on the server to handle auth.

I'm using Express. So also tell me which endpoints I MUST expose for this to work.

<!-- gh-comment-id:3363577436 --> @rohovskoi commented on GitHub (Oct 2, 2025): @dosu ```md Social Auth Endpoints POST /api/auth/sign-in/social - Initiates social OAuth flow GET /api/auth/callback/{providerId} - Handles OAuth provider callbacks SSO Plugin Endpoints When using the SSO plugin, additional endpoints are added index.ts:80-96 : POST /api/auth/sso/register - Register OIDC/SAML providers GET /api/auth/sso/callback/{providerId} - Handle SSO callbacks GET /api/auth/sso/saml2/sp/metadata - SAML metadata endpoint POST /api/auth/sso/saml2/callback/{providerId} - SAML callback endpoint ``` Are all of these endpoints affected or only callback ones? Which endpoint implementations can I leave for my server API to handle and which I **MUST** implement with `authClient` on the client (starting the call with it, instead of simple fetch('myBackendUrl/someBetterAuthEndpoint') ). Keep in mind that I want to leave as much as possible on the server to handle auth. I'm using Express. So also tell me which endpoints I **MUST** expose for this to work.
Author
Owner

@dosubot[bot] commented on GitHub (Oct 2, 2025):

Only the endpoints that initiate social/SSO sign-in flows—specifically, those that rely on the OAuth "state" parameter—are affected by the client-side state/cookie change in Better Auth v1.3.23+.

For your list:

  • POST /api/auth/sign-in/social and POST /api/auth/sign-in/sso (not shown above, but part of SSO flows) must be called from the client using authClient. This is required so the OAuth state cookie is set in the browser; calling these from the server or via a plain fetch will cause state_mismatch errors on callback [source].
  • GET /api/auth/callback/{providerId} and GET /api/auth/sso/callback/{providerId} are server-handled. You must expose these in your Express API to handle OAuth/OIDC/SSO callbacks. They validate the state/cookie and complete the login [source].
  • POST /api/auth/sso/register, GET /api/auth/sso/saml2/sp/metadata, and POST /api/auth/sso/saml2/callback/{providerId} are not affected by the client-side state/cookie change. You can keep these fully server-handled in Express [source].

Summary for Express:
You must expose all callback endpoints (OAuth/OIDC and SSO) and SAML endpoints on your Express server. But you must initiate social/SSO sign-in from the client using authClient—not via a server action or direct fetch—so the state cookie is set correctly. All other endpoints (like provider registration, SAML metadata, SAML callback) can remain server-side.

If you want to keep as much logic as possible on the server, you can still handle all callbacks, session management, and SAML flows in Express, but the initial sign-in for social/SSO must start on the client with authClient [source].

Watch out for callback URL misconfigurations: the OAuth provider's redirect URI should point to your API callback endpoint, but the callbackURL in your client code should be a user-facing route, not the API endpoint [source].

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Chat with Dosu Join Discord Share on X

<!-- gh-comment-id:3363587465 --> @dosubot[bot] commented on GitHub (Oct 2, 2025): <!-- Answer --> Only the endpoints that initiate social/SSO sign-in flows—specifically, those that rely on the OAuth "state" parameter—are affected by the client-side state/cookie change in Better Auth v1.3.23+. For your list: - POST `/api/auth/sign-in/social` and POST `/api/auth/sign-in/sso` (not shown above, but part of SSO flows) **must be called from the client using `authClient`**. This is required so the OAuth state cookie is set in the browser; calling these from the server or via a plain fetch will cause `state_mismatch` errors on callback [[source]](https://github.com/better-auth/better-auth/issues/4998). - GET `/api/auth/callback/{providerId}` and GET `/api/auth/sso/callback/{providerId}` are **server-handled**. You must expose these in your Express API to handle OAuth/OIDC/SSO callbacks. They validate the state/cookie and complete the login [[source]](https://github.com/better-auth/better-auth/blob/8fbb921fb319ba2e9d079ead0de545643fd595b9/packages/better-auth/src/api/routes/callback.ts). - POST `/api/auth/sso/register`, GET `/api/auth/sso/saml2/sp/metadata`, and POST `/api/auth/sso/saml2/callback/{providerId}` are **not affected** by the client-side state/cookie change. You can keep these fully server-handled in Express [[source]](https://github.com/better-auth/better-auth/blob/8fbb921fb319ba2e9d079ead0de545643fd595b9/packages/better-auth/src/plugins/sso/index.ts). **Summary for Express:** You must expose all callback endpoints (OAuth/OIDC and SSO) and SAML endpoints on your Express server. But you must initiate social/SSO sign-in from the client using `authClient`—not via a server action or direct fetch—so the state cookie is set correctly. All other endpoints (like provider registration, SAML metadata, SAML callback) can remain server-side. If you want to keep as much logic as possible on the server, you can still handle all callbacks, session management, and SAML flows in Express, but the initial sign-in for social/SSO must start on the client with `authClient` [[source]](https://github.com/better-auth/better-auth/issues/4969). Watch out for callback URL misconfigurations: the OAuth provider's redirect URI should point to your API callback endpoint, but the `callbackURL` in your client code should be a user-facing route, not the API endpoint [[source]](https://github.com/better-auth/better-auth/issues/4998). <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/e6548666-f1bc-4748-aba0-8035fcc7a100?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/e6548666-f1bc-4748-aba0-8035fcc7a100?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/e6548666-f1bc-4748-aba0-8035fcc7a100?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/e6548666-f1bc-4748-aba0-8035fcc7a100?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/e6548666-f1bc-4748-aba0-8035fcc7a100?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/e6548666-f1bc-4748-aba0-8035fcc7a100?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/e6548666-f1bc-4748-aba0-8035fcc7a100?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/cdda13d9-dd27-4d31-b09a-5d8bec92de21/ask?utm_source=github)&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/better-auth/better-auth/issues/5055)
Author
Owner

@rohovskoi commented on GitHub (Oct 2, 2025):

@dosu

Is magic link or any other plugins also affected?

<!-- gh-comment-id:3363646847 --> @rohovskoi commented on GitHub (Oct 2, 2025): @dosu Is magic link or any other plugins also affected?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#10154