diff --git a/.version b/.version index ee331cf3..90775eb1 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -v2.28.1 \ No newline at end of file +v2.28.2 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index fb29db81..47ec885a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## [v2.28.2](https://github.com/auth0/auth0-react/tree/v2.28.2) (2026-10-02) +[Full Changelog](https://github.com/auth0/auth0-react/compare/v2.28.1...v2.28.2) + +**Fixed** +- fix(anonymous): bump auth0-spa-js to v2.28.2 to properly handle session expiry errors [\#1271](https://github.com/auth0/auth0-react/pull/1271) ([yogeshchoudhary147](https://github.com/yogeshchoudhary147)) + ## [v2.28.1](https://github.com/auth0/auth0-react/tree/v2.28.1) (2026-10-02) [Full Changelog](https://github.com/auth0/auth0-react/compare/v2.28.0...v2.28.1) diff --git a/docs/classes/AnonymousSessionError.html b/docs/classes/AnonymousSessionError.html index ab8ec5e7..068e819e 100644 --- a/docs/classes/AnonymousSessionError.html +++ b/docs/classes/AnonymousSessionError.html @@ -13,8 +13,8 @@

Class AnonymousSessionError

Error thrown when an anonymous session operation fails.

The code field identifies the specific failure reason. Codes session_expired -and invalid_session_token are handled silently by AnonymousSessionClient.getAccessToken -and will never reach the caller from that method. All other codes are surfaced directly.

+and invalid_session_token are propagated by AnonymousSessionClient.getAccessToken +so the calling SDK can recover using its own stored state.

Hierarchy

@@ -23,7 +23,7 @@

Hierarchy

+
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3280
  • @@ -65,7 +65,7 @@

    Parameters

    Returns AnonymousSessionError

    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3290
  • @@ -75,7 +75,7 @@
    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3289
  • code: string
    @@ -83,7 +83,7 @@
    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3285
  • message: string
    -
    +

    Hierarchy

    • Error
      • OAuthError
    +
  • Defined in src/errors.tsx:7
  • @@ -63,7 +63,7 @@

    Parameters

    Returns OAuthError

    +
  • Defined in src/errors.tsx:8
  • @@ -71,12 +71,12 @@
    error: string
    +
  • Defined in src/errors.tsx:8
  • error_description?: string
    +
  • Defined in src/errors.tsx:8
  • message: string
    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3059
  • @@ -64,7 +64,7 @@

    Parameters

    Returns PasskeyChallengeError

    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3060
  • @@ -75,19 +75,19 @@
    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3047
  • cause?: PasskeyApiErrorResponse
    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3034
  • code: string
    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3035
  • headers?: Headers
    @@ -95,7 +95,7 @@
    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3043
  • message: string
    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3039
  • stackTraceLimit: number
    diff --git a/docs/classes/PasskeyGetTokenError.html b/docs/classes/PasskeyGetTokenError.html index ed0ee45a..95e320b9 100644 --- a/docs/classes/PasskeyGetTokenError.html +++ b/docs/classes/PasskeyGetTokenError.html @@ -22,7 +22,7 @@

    Hierarchy

    • PasskeyGetTokenError
    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3068
  • @@ -66,7 +66,7 @@

    Parameters

    Returns PasskeyGetTokenError

    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3070
  • @@ -77,19 +77,19 @@
    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3047
  • cause?: PasskeyGetTokenApiErrorResponse
    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3069
  • code: string
    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3035
  • headers?: Headers
    @@ -97,7 +97,7 @@
    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3043
  • message: string
    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3039
  • stackTraceLimit: number
    diff --git a/docs/classes/PasskeyRegisterError.html b/docs/classes/PasskeyRegisterError.html index 1e23ef6d..affea2eb 100644 --- a/docs/classes/PasskeyRegisterError.html +++ b/docs/classes/PasskeyRegisterError.html @@ -20,7 +20,7 @@

    Hierarchy

    • PasskeyRegisterError
    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3053
  • @@ -64,7 +64,7 @@

    Parameters

    Returns PasskeyRegisterError

    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3054
  • @@ -75,19 +75,19 @@
    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3047
  • cause?: PasskeyApiErrorResponse
    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3034
  • code: string
    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3035
  • headers?: Headers
    @@ -95,7 +95,7 @@
    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3043
  • message: string
    +
  • Defined in node_modules/@auth0/auth0-auth-js/dist/index.d.ts:3039
  • stackTraceLimit: number
    diff --git a/docs/functions/Auth0Provider.html b/docs/functions/Auth0Provider.html index 6539c0fd..a25baf25 100644 --- a/docs/functions/Auth0Provider.html +++ b/docs/functions/Auth0Provider.html @@ -34,7 +34,7 @@

    Parameters

  • opts: Auth0ProviderOptions<TUser>
  • Returns Element

    +
  • Defined in src/auth0-provider.tsx:203
  • +
  • Defined in src/use-auth0.tsx:29
  • +
  • Defined in src/use-auth0-suspense.tsx:43
  • +
  • Defined in src/use-enterprise-connect.tsx:46
  • +
  • Defined in src/with-auth0.tsx:29
  • +
  • Defined in src/with-authentication-required.tsx:103
  • -
    interface AnonymousSession {
        accessToken: string;
        expiresAt: number;
        scope?: string;
        sessionReplaced?: boolean;
        sessionToken: string;
        sessionTokenExpiresAt?: number;
    }
    @@ -57,20 +56,6 @@