diff --git a/.version b/.version index ee92fa74..9ce316c3 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -v2.22.1 \ No newline at end of file +v2.23.0 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 18e6a133..78c7bc66 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,14 @@ # Change Log +## [v2.23.0](https://github.com/auth0/auth0-react/tree/v2.23.0) (2026-08-05) +[Full Changelog](https://github.com/auth0/auth0-react/compare/v2.22.1...v2.23.0) + +**Added** +- feat: add 'use client' directive to bundles for RSC support [\#1179](https://github.com/auth0/auth0-react/pull/1179) ([gyaneshgouraw-okta](https://github.com/gyaneshgouraw-okta)) + +**Fixed** +- fix: prevent open redirect via protocol-relative returnTo [\#1185](https://github.com/auth0/auth0-react/pull/1185) ([yogeshchoudhary147](https://github.com/yogeshchoudhary147)) + ## [v2.22.1](https://github.com/auth0/auth0-react/tree/v2.22.1) (2026-07-29) [Full Changelog](https://github.com/auth0/auth0-react/compare/v2.22.0...v2.22.1) diff --git a/docs/classes/OAuthError.html b/docs/classes/OAuthError.html index da186b4f..2721ae52 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/use-auth0.tsx:29
  • +
  • Defined in src/with-auth0.tsx:29
  • +
  • Defined in src/with-authentication-required.tsx:103
  • Returns Fetcher<TOutput>

    +
  • Defined in src/auth0-context.tsx:359
  • customTokenExchange: (
        options: CustomTokenExchangeOptions,
    ) => Promise<TokenEndpointResponse>
    @@ -138,13 +138,13 @@

    Parameters

    Returns Promise<TokenEndpointResponse>

    A promise that resolves to the token endpoint response.

    +
  • Defined in src/auth0-context.tsx:174
  • error: Error | undefined
    +
  • Defined in src/auth-state.tsx:7
  • exchangeToken: (
        options: CustomTokenExchangeOptions,
    ) => Promise<TokenEndpointResponse>
    @@ -179,7 +179,7 @@
    +
  • Defined in src/auth0-context.tsx:207
  • generateDpopProof: (
        params: {
            accessToken: string;
            method: string;
            nonce?: string;
            url: string;
        },
    ) => Promise<string>
    @@ -204,7 +204,7 @@

    Parameters

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

    +
  • Defined in src/auth0-context.tsx:349
  • getAccessTokenSilently: {
        (
            options: GetTokenSilentlyOptions & { detailedResponse: true },
        ): Promise<GetTokenSilentlyVerboseResponse>;
        (options?: GetTokenSilentlyOptions): Promise<string>;
        (
            options: GetTokenSilentlyOptions,
        ): Promise<string | GetTokenSilentlyVerboseResponse>;
    }
    @@ -229,7 +229,7 @@
    +
  • Defined in src/auth0-context.tsx:63
  • getAccessTokenWithPopup: (
        options?: GetTokenWithPopupOptions,
        config?: PopupConfigOptions,
    ) => Promise<string | undefined>
    @@ -243,7 +243,7 @@
    +
  • Defined in src/auth0-context.tsx:85
  • getConfiguration: () => Readonly<ClientConfiguration>
    @@ -271,7 +271,7 @@
    +
  • Defined in src/auth0-context.tsx:370
  • getDpopNonce: (id?: string) => Promise<string | undefined>
    @@ -311,7 +311,7 @@
    +
  • Defined in src/auth0-context.tsx:329
  • getIdTokenClaims: () => Promise<IdToken | undefined>
    @@ -321,7 +321,7 @@
    +
  • Defined in src/auth0-context.tsx:97
  • handleRedirectCallback: (
        url?: string,
    ) => Promise<ConnectAccountRedirectResult | RedirectLoginResult<any>>
    @@ -345,19 +345,19 @@

    Parameters

    Returns Promise<ConnectAccountRedirectResult | RedirectLoginResult<any>>

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

    Returns Promise

    +
  • Defined in src/auth0-context.tsx:147
  • loginWithPopup: (
        options?: PopupLoginOptions,
        config?: PopupConfigOptions,
    ) => Promise<void>
    @@ -416,7 +416,7 @@
    +
  • Defined in src/auth0-context.tsx:238
  • loginWithRedirect: (options?: RedirectLoginOptions<AppState>) => Promise<void>
    @@ -428,7 +428,7 @@
    +
  • Defined in src/auth0-context.tsx:220
  • logout: (options?: LogoutOptions) => Promise<void>
    @@ -441,7 +441,7 @@
    +
  • Defined in src/auth0-context.tsx:275
  • @@ -465,7 +465,7 @@
    +
  • Defined in src/auth0-context.tsx:424
  • @@ -492,7 +492,7 @@
    +
  • Defined in src/auth0-context.tsx:476
  • @@ -508,7 +508,7 @@
    +
  • Defined in src/auth0-context.tsx:440
  • revokeRefreshToken: (options?: RevokeRefreshTokenOptions) => Promise<void>
    @@ -545,7 +545,7 @@

    Parameters

    Returns Promise<void>

    +
  • Defined in src/auth0-context.tsx:304
  • setDpopNonce: (nonce: string, id?: string) => Promise<void>
    @@ -584,13 +584,13 @@
    +
  • Defined in src/auth0-context.tsx:341
  • user: TUser | undefined
    +
  • Defined in src/auth-state.tsx:10
  • 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:535