From 6366ba4bbf9a1cbd08ef3a9682279ecd2a766ab3 Mon Sep 17 00:00:00 2001 From: Yogesh Chaudhary Date: Fri, 2 Oct 2026 09:32:53 +0530 Subject: [PATCH] Release v2.28.1 --- .version | 2 +- CHANGELOG.md | 6 +++ docs/classes/OAuthError.html | 8 +-- docs/functions/Auth0Provider.html | 2 +- docs/functions/useAuth0.html | 2 +- docs/functions/useAuth0Suspense.html | 2 +- docs/functions/useEnterpriseConnect.html | 2 +- docs/functions/withAuth0.html | 2 +- .../functions/withAuthenticationRequired.html | 2 +- .../interfaces/AnonymousSessionApiClient.html | 23 ++++---- docs/interfaces/Auth0ContextInterface.html | 52 +++++++++---------- docs/interfaces/LogoutOptions.html | 2 +- docs/interfaces/RedirectLoginOptions.html | 2 +- docs/interfaces/UseEnterpriseConnect.html | 6 +-- docs/interfaces/WithAuth0Props.html | 4 +- .../WithAuthenticationRequiredOptions.html | 12 ++--- docs/types/AppState.html | 8 +-- docs/types/Auth0ProviderOptions.html | 2 +- .../types/Auth0ProviderWithClientOptions.html | 2 +- .../types/Auth0ProviderWithConfigOptions.html | 2 +- docs/types/Auth0SuspenseContextInterface.html | 2 +- docs/types/ConnectedAccount.html | 2 +- docs/variables/Auth0Context.html | 2 +- package-lock.json | 4 +- package.json | 2 +- 25 files changed, 83 insertions(+), 72 deletions(-) diff --git a/.version b/.version index c0543207..ee331cf3 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -v2.28.0 \ No newline at end of file +v2.28.1 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 1309c64b..fb29db81 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## [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) + +**Fixed** +- fix(anonymous): surface session expiry instead of silently rotating [\#1269](https://github.com/auth0/auth0-react/pull/1269) ([yogeshchoudhary147](https://github.com/yogeshchoudhary147)) + ## [v2.28.0](https://github.com/auth0/auth0-react/tree/v2.28.0) (2026-10-01) [Full Changelog](https://github.com/auth0/auth0-react/compare/v2.27.0...v2.28.0) diff --git a/docs/classes/OAuthError.html b/docs/classes/OAuthError.html index 6b47d032..81d96b97 100644 --- a/docs/classes/OAuthError.html +++ b/docs/classes/OAuthError.html @@ -22,7 +22,7 @@

Hierarchy

+
  • 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 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
    • -

      Returns a valid anonymous access token, creating or renewing the session as needed.

      +

      Returns a valid anonymous access token, renewing it when expired.

      If the stored access token is still fresh (more than 60 s remaining), it is returned directly without a network call. Otherwise the session token is used -to re-mint the access token. If the session token has also expired, auth0-auth-js -silently creates a fresh identity (any previously set metadata is lost).

      +to re-mint the access token. If the session token has also expired, the local +cache is cleared and an AnonymousSessionError with code session_expired is +thrown — call createSession() to start a new session.

      Parameters

      -

      Returns Promise<AnonymousTokenResult>

    +
  • Defined in node_modules/@auth0/auth0-spa-js/dist/typings/anonymous/AnonymousSessionApiClient.d.ts:47
  • +
  • Defined in node_modules/@auth0/auth0-spa-js/dist/typings/anonymous/AnonymousSessionApiClient.d.ts:61
  • +
  • Defined in node_modules/@auth0/auth0-spa-js/dist/typings/anonymous/AnonymousSessionApiClient.d.ts:57
    • @@ -119,7 +124,7 @@
    +
  • Defined in node_modules/@auth0/auth0-spa-js/dist/typings/anonymous/AnonymousSessionApiClient.d.ts:53
  • +
  • Defined in src/auth0-context.tsx:350
  • generateDpopProof: (
        params: {
            accessToken: string;
            method: string;
            nonce?: string;
            url: string;
        },
    ) => Promise<string>
    @@ -125,7 +125,7 @@

    Parameters

  • params: { accessToken: string; method: string; nonce?: string; url: string }
  • Returns Promise<string>

    +
  • Defined in src/auth0-context.tsx:340
  • getConfiguration: () => Readonly<ClientConfiguration>
    @@ -153,7 +153,7 @@
    +
  • Defined in src/auth0-context.tsx:361
  • getDpopNonce: (id?: string) => Promise<string | undefined>
    @@ -193,7 +193,7 @@
    +
  • Defined in src/auth0-context.tsx:320
  • setDpopNonce: (nonce: string, id?: string) => Promise<void>
    @@ -232,7 +232,7 @@
    +
  • Defined in src/auth0-context.tsx:332
  • @@ -251,7 +251,7 @@
    +
  • Defined in src/auth0-context.tsx:482
  • connectAccountWithRedirect: (
        options: RedirectConnectAccountOptions,
    ) => Promise<void>
    @@ -265,7 +265,7 @@
    +
  • Defined in src/auth0-context.tsx:252
  • customTokenExchange: (
        options: CustomTokenExchangeOptions,
    ) => Promise<TokenEndpointResponse>
    @@ -296,13 +296,13 @@

    Parameters

    Returns Promise<TokenEndpointResponse>

    A promise that resolves to the token endpoint response.

    +
  • Defined in src/auth0-context.tsx:165
  • error: Error | undefined
    +
  • Defined in src/auth-state.tsx:7
  • exchangeToken: (
        options: CustomTokenExchangeOptions,
    ) => Promise<TokenEndpointResponse>
    @@ -337,7 +337,7 @@
    +
  • Defined in src/auth0-context.tsx:198
  • getAccessTokenWithPopup: (
        options?: GetTokenWithPopupOptions,
        config?: PopupConfigOptions,
    ) => Promise<string | undefined>
    @@ -351,7 +351,7 @@
    +
  • Defined in src/auth0-context.tsx:76
  • getIdTokenClaims: () => Promise<IdToken | undefined>
    @@ -361,7 +361,7 @@
    +
  • Defined in src/auth0-context.tsx:88
  • handleRedirectCallback: (
        url?: string,
    ) => Promise<ConnectAccountRedirectResult | RedirectLoginResult<any>>
    @@ -385,19 +385,19 @@

    Parameters

    Returns Promise<ConnectAccountRedirectResult | RedirectLoginResult<any>>

    +
  • Defined in src/auth0-context.tsx:305
  • isAuthenticated: boolean
    +
  • Defined in src/auth-state.tsx:8
  • isLoading: boolean
    +
  • Defined in src/auth-state.tsx:9
  • loginWithCustomTokenExchange: (
        options: CustomTokenExchangeOptions,
    ) => Promise<TokenEndpointResponse>
    @@ -440,7 +440,7 @@

    Returns Promise

    +
  • Defined in src/auth0-context.tsx:138
  • loginWithPopup: (
        options?: PopupLoginOptions,
        config?: PopupConfigOptions,
    ) => Promise<void>
    @@ -456,7 +456,7 @@
    +
  • Defined in src/auth0-context.tsx:229
  • loginWithRedirect: (options?: RedirectLoginOptions<AppState>) => Promise<void>
    @@ -468,7 +468,7 @@
    +
  • Defined in src/auth0-context.tsx:211
  • logout: (options?: LogoutOptions) => Promise<void>
    @@ -481,7 +481,7 @@
    +
  • Defined in src/auth0-context.tsx:266
  • @@ -505,7 +505,7 @@
    +
  • Defined in src/auth0-context.tsx:415
  • @@ -532,7 +532,7 @@
    +
  • Defined in src/auth0-context.tsx:467
  • @@ -548,7 +548,7 @@
    +
  • Defined in src/auth0-context.tsx:431
  • revokeRefreshToken: (options?: RevokeRefreshTokenOptions) => Promise<void>
    @@ -585,13 +585,13 @@

    Parameters

    Returns Promise<void>

    +
  • Defined in src/auth0-context.tsx:295
  • user: TUser | undefined
    +
  • Defined in src/auth-state.tsx:10
  • @@ -642,7 +642,7 @@

    Parameters

  • Optionaloptions: GetTokenSilentlyOptions
  • Returns Promise<string | undefined>

    +
  • Defined in src/auth0-context.tsx:62
  • interface UseEnterpriseConnect {
        isFederatedDomain: (
            emailDomain: string,
            options?: IsFederatedDomainOptions,
        ) => Promise<boolean>;
        loginWithSSO: (
            email: string,
            options?: RedirectLoginOptions<AppState>,
        ) => Promise<void>;
    }
    +
  • Defined in src/use-enterprise-connect.tsx:14
  • @@ -38,7 +38,7 @@
    +
  • Defined in src/use-enterprise-connect.tsx:21
  • loginWithSSO: (
        email: string,
        options?: RedirectLoginOptions<AppState>,
    ) => Promise<void>
    @@ -47,7 +47,7 @@
    +
  • Defined in src/use-enterprise-connect.tsx:30
  • interface WithAuth0Props {
        auth0: Auth0ContextInterface;
    }
    +
  • Defined in src/with-auth0.tsx:7
  • @@ -32,7 +32,7 @@
    +
  • Defined in src/with-auth0.tsx:8
  • interface WithAuthenticationRequiredOptions {
        context?: Context<Auth0ContextInterface<User>>;
        loginOptions?: RedirectLoginOptions<AppState>;
        onBeforeAuthentication?: () => Promise<void>;
        onRedirecting?: () => Element;
        returnTo?: string | (() => string);
    }
    +
  • Defined in src/with-authentication-required.tsx:33
  • @@ -40,7 +40,7 @@
    +
  • Defined in src/with-authentication-required.tsx:92
  • @@ -51,7 +51,7 @@
    +
  • Defined in src/with-authentication-required.tsx:86
  • onBeforeAuthentication?: () => Promise<void>
    @@ -61,7 +61,7 @@
    +
  • Defined in src/with-authentication-required.tsx:71
  • onRedirecting?: () => Element
    @@ -71,7 +71,7 @@
    +
  • Defined in src/with-authentication-required.tsx:61
  • returnTo?: string | (() => string)
    @@ -85,7 +85,7 @@
    +
  • Defined in src/with-authentication-required.tsx:51
  • +
  • Defined in src/auth0-provider.tsx:45
  • +
  • Defined in src/auth0-context.tsx:559