unstale

npm / @better-auth/expo

@better-auth/expo

What changed in @better-auth/expo 1, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

5 breaking13 security2 new APIs and options1 performance1 behavior and defaults9 fixes and other

See which of these apply to your code, ranked, in your agent:

npx @unstale/cli init

@unstale/cli on npm

@better-auth/expo 131 changes

Breaking changes 5

  • When OAuth state is stored in a cookie, authorization URLs without a state parameter are rejected, matching the behavior with default database storage.

    1.7.17release notes

  • The Expo authorization proxy redirects only to configured social or generic OAuth authorization endpoint origins, or SSO provider origins in trustedOrigins. Add an SSO identity provider's origin to trustedOrigins if sign-in fails.

    1.7.16release notes

  • Custom storage implementations must provide both synchronous and asynchronous SecureStore methods.

    1.7.0release notes

  • getCookie() now returns a promise, using asynchronous SecureStore access to prevent synchronous crashes when iOS Keychain storage is unavailable.

    1.7.0release notes

  • Rejects redirect and callback targets that are not in trustedOrigins.

    1.6.17release notes

Security 13

  • The Expo authorization proxy sets the cookie only for an unexpired state issued by the server.

    1.7.16release notes

  • Leftover session data is cleared from secure storage after upgrades or sign-out.

    1.7.4release notes

  • Prevents Expo apps from sending unauthenticated requests while large stored cookies are being updated, and restores the previous cookie value if an update is interrupted or incomplete.

    1.7.3release notes

  • @better-auth/drizzle-adapter: Concurrent requests can exceed rate limits on PostgreSQL

    1.7.0security advisory

  • @better-auth/scim: account takeover and stale access via SCIM provider-id collision

    1.6.22security advisory

  • @better-auth/stripe: cross-organization billing tampering in organization subscription actions

    1.6.21security advisory

  • @better-auth/oauth-provider's OAuth authorization-code grant allows concurrent redemption when two token requests race the find-then-delete primitive

    1.6.11security advisory

  • Better Auth: OAuth refresh-token rotation forks the token family on concurrent redemption

    1.6.11security advisory

  • @better-auth/sso provider registration has server-side request forgery via unvalidated OIDC endpoints

    1.6.11security advisory

  • @better-auth/sso: SSO provider may allow registration for any org member without a checking their role

    1.6.11security advisory

  • Better Auth: Stale sessions persist after user deletion across admin, anonymous, and SCIM flows

    1.6.11security advisory

  • OAuth 2.1 Provider: Unprivileged users can register OAuth clients

    1.6.5security advisory

  • Better Auth Passkey Plugin allows passkey deletion through IDOR

    1.4.0security advisory

New APIs and options 2

  • This function is now exported for plugins that look up OAuth state records.

    1.7.16release notes

  • The plugin interface gains an optional version field, and built-in plugins expose their version.

    1.6.0release notes

Performance 1

  • Plugin packages no longer import from the better-auth root, preventing bundlers that split code from emitting unused Kysely chunks when used with better-auth/minimal.

    1.7.21release notes

Behavior and default changes 1

  • Cached session data is read from SecureStore on app startup to eliminate the login screen flash for returning users.

    1.6.6release notes

Fixes and other changes 9

  • @better-auth/expo now uses the copy of better-call installed by better-auth, so an Expo app no longer gets a second copy.

    1.7.24release notes

  • The Expo authorization proxy no longer logs a provider configuration error on every OAuth sign-in when a social provider is set up for ID token sign-in only, such as Apple without a client secret.

    1.7.19release notes

  • Social account linking with an ID token now sends the Expo origin header, allowing native link flows with a session cookie to pass origin validation.

    1.7.11release notes

  • Prevents corrupted cookies during concurrent updates.

    1.7.4release notes

  • Session data containing multibyte characters is stored safely in Expo secure storage.

    1.7.4release notes

  • Expo client plugins now compose with createAuthClient without TypeScript errors, and the resulting client preserves each plugin's inferred actions.

    1.7.0release notes

  • storageAdapter.setItem() is synchronous; use setItemAsync() when the write must be awaited.

    1.7.0release notes

  • Restores client plugin declaration compatibility for downstream TypeScript consumers.

    1.6.28release notes

  • Expo apps now include the stored session cookie when linking a social account with an ID token.

    1.6.17release notes