unstale

npm / @supabase/auth-js

@supabase/auth-js

What changed in @supabase/auth-js 2, from its official release notes, upgrade guides and advisories. Sources checked 2026-11-30.

3 breaking2 deprecations18 new APIs and options3 behavior and defaults60 fixes and other

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

npx @unstale/cli init

@unstale/cli on npm

@supabase/auth-js 286 changes

Breaking changes 3

  • Node.js 20 support is dropped, so developers using this package need a different Node.js version.

    2.110.0release notes

  • Lowers the default lockAcquireTimeout to 5 seconds.

    2.98.0release notes

  • Node.js 20+ is required.

    2.79.0release notes

Deprecations 2

  • The experimental passkey opt-in is deprecated because the passkey API is enabled by default.

    2.117.0release notes

  • Warns when the deprecated lock option is used.

    2.112.4release notes

New APIs and options 18

  • signInWithPasskey forwards options.mediation to navigator.credentials.get.

    2.117.0release notes

  • Adds an API for MFA recovery codes.

    2.116.0release notes

  • Adds custom_claims_allowlist to the custom providers admin API.

    2.109.0release notes

  • Introduces dispose() alongside a commit guard as the navigator.locks-based mutex is removed.

    2.107.0release notes

  • Adds WebAuthn registration, authentication, and management for passkeys.

    2.105.0release notes

  • Adds admin CRUD methods for custom OIDC/OAuth providers.

    2.99.0release notes

  • Supports custom providers via the custom: prefix in the Provider type.

    2.98.0release notes

  • Adds token_endpoint_auth_method to OAuth client create and update.

    2.98.0release notes

  • Adds currentPassword to the UserAttributes type.

    2.98.0release notes

  • Add the skipAutoInitialize option to prevent constructor auto-init.

    2.97.0release notes

  • Adds an optional jwt parameter to getAuthenticatorAssuranceLevel.

    2.93.0release notes

  • A configurable lock acquisition timeout was added to prevent deadlocks.

    2.90.0release notes

  • The X OAuth 2.0 provider is now supported.

    2.89.0release notes

  • The detectSessionInUrl option now allows a custom predicate, letting developers customize session detection in the URL.

    2.88.0release notes

  • Adds endpoints for listing and revoking OAuth grants.

    2.82.0release notes

  • Errors can now be thrown instead of returned.

    2.79.0release notes

  • Adds API calls for managing OAuth 2.1 authorization consent.

    2.77.0release notesrelease notes

  • Adds support for updating OAuth clients.

    2.77.0release notesrelease notes

Behavior and default changes 3

  • The passkey API is enabled by default, so developers no longer need to opt in experimentally.

    2.117.0release notes

  • auth.resend() uses a consistent confirmation flow.

    2.108.0release notes

  • AMR claims now support string arrays.

    2.89.0release notes

Fixes and other changes 60

  • Fixes an empty object being miscast to User.

    2.119.0release notes

  • Global sign out no longer clears the local session when the server fails to log out.

    2.119.0release notes

  • Returns the stored session when a refresh loses to another tab.

    2.117.1release notes

  • Silences commit-guard-discarded refreshes during initial session handling.

    2.116.0release notes

  • An unverified factor is unenrolled after a failed registration.

    2.114.0release notes

  • Converts a stolen-lock AbortError when acquireTimeout is 0.

    2.112.4release notes

  • Prevents refresh rejections from going unhandled.

    2.112.4release notes

  • Preserves the error message for 5xx errors.

    2.112.1release notes

  • Accepts uppercase UUIDs when validating UUIDs.

    2.112.0release notes

  • PKCE verifiers are stored in per-flow slots so they survive overlapping flows.

    2.111.0release notes

  • Reduces console noise from stale refresh tokens.

    2.110.9release notes

  • Aborted and transient fetch failures are logged at warn instead of console.error.

    2.110.8release notes

  • Preserves the PKCE verifier.

    2.110.3release notes

  • Clears the local session when signout fails.

    2.110.2release notes

  • Init-time notifications are deferred until initializePromise resolves.

    2.110.1release notes

  • Preserves a valid session when refresh fails, including during cooldown repeat failures.

    2.108.2release notes

  • AuthApiError instances already returned through the contract are no longer also logged with console.error.

    2.108.0release notes

  • Returns AuthInvalidJwtError for expired JWTs.

    2.107.0release notes

  • Recognizes redirects containing ?error= in the implicit grant gate.

    2.107.0release notes

  • Reverts the change that encoded the client ID in OAuth requests.

    2.107.0release notes

  • Restores the user response from signup.

    2.106.2release notes

  • Client IDs are now encoded in OAuth requests.

    2.106.1release notes

  • For email_change single-confirmation verification, returns null user and session.

    2.106.0release notes

  • getItemAsync now returns null when JSON parsing fails.

    2.105.4release notes

  • Enum-like unions are widened with (string & {}) for forward compatibility.

    2.105.2release notes

  • WebAuthnError now has toJSON for correct JSON serialization.

    2.105.2release notes

  • PKCE recovery flows now emit the PASSWORD_RECOVERY event.

    2.104.1release notes

  • Includes Cloudflare error codes in the network error code list, affecting how these errors are classified.

    2.103.2release notes

  • Adds toJSON to AuthError for correct JSON serialization.

    2.103.1release notes

  • Missing-session logging now uses console.warn instead of console.error.

    2.102.0release notes

  • Guards navigator lock stealing against a cascade when another request steals the lock.

    2.100.0release notes

  • Recovers from orphaned navigator locks using a steal fallback.

    2.98.0release notes

  • Fixes the UserAttributes type.

    2.98.0release notes

  • Resolves Promise.then() security errors in locks when running in Firefox content scripts.

    2.96.0release notes

  • Corrected OAuth authorization types to match API responses.

    2.94.1release notes

  • Fixes fallback naming in auth; the notes do not specify the affected name or behavior.

    2.93.3release notes

  • Handles uncaught promise rejections during initialization.

    2.93.0release notes

  • Clears local storage on signOut when the session is already missing.

    2.93.0release notes

  • Restores SSR OAuth functionality that was broken in v2.91.0.

    2.91.1release notes

  • Defers subscriber notification to prevent deadlock during exchangeCodeForSession.

    2.91.0release notes

  • Clarifies that updateUserById applies changes directly, helping developers understand its behavior.

    2.91.0release notes

  • The user type now includes the banned_until property.

    2.90.0release notes

  • The factor type now includes the last_challenged_at property.

    2.90.0release notes

  • The session is preserved when a magic link is clicked twice.

    2.90.0release notes

  • Calling stopAutoRefresh now clears the initial setTimeout.

    2.90.0release notes

  • Adds a helpful error when the PKCE code verifier is missing.

    2.87.2release notes

  • Navigator locks are skipped when persistSession is false.

    2.87.1release notes

  • The code verifier remains in storage during edge cases.

    2.86.1release notes

  • The getSession warning is suppressed when getUser is called first.

    2.86.1release notes

  • Minor fixes to OAuth types may affect how developers type OAuth-related code.

    2.85.0release notes

  • Uses Symbols for callback IDs to resolve Next.js 16 compatibility.

    2.81.1release notes

  • Adds automatic browser redirect to signInWithSSO.

    2.81.1release notes

  • Registration and authentication use direct attestation.

    2.81.0release notes

  • The UserAppMetadata interface now includes the providers type.

    2.81.0release notes

  • The webauthn parameter is optional, and registration parameters move to webauthn.

    2.81.0release notes

  • TypeScript types were added for documented JWT claims fields.

    2.80.0release notes

  • A warning is now emitted only if multiple clients share a storage-key.

    2.80.0release notes

  • Moves the session warning proxy from the session object to the user object.

    2.78.0release notes

  • Removes redirection from getAuthorizationDetails.

    2.77.0release notesrelease notes

  • Handles a 204 No Content response when deleting an OAuth client.

    2.77.0release notes