diff --git a/.version b/.version index c444c795..41ac0395 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -v2.19.0 \ No newline at end of file +v2.20.0 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f181468..2a8ff265 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # Change Log +## [v2.20.0](https://github.com/auth0/auth0-react/tree/v2.20.0) (2026-07-02) +[Full Changelog](https://github.com/auth0/auth0-react/compare/v2.19.0...v2.20.0) + +**Added** +- feat: enforce IPSIE session_expiry ceiling on local session lifetime [\#1126](https://github.com/auth0/auth0-react/pull/1126) ([yogeshchoudhary147](https://github.com/yogeshchoudhary147)) + ## [v2.19.0](https://github.com/auth0/auth0-react/tree/v2.19.0) (2026-06-18) [Full Changelog](https://github.com/auth0/auth0-react/compare/v2.18.0...v2.19.0) diff --git a/docs/assets/hierarchy.js b/docs/assets/hierarchy.js index b4e2bca4..ed4efb01 100644 --- a/docs/assets/hierarchy.js +++ b/docs/assets/hierarchy.js @@ -1 +1 @@ -window.hierarchyData = "eJyVlMtu2zAQRf+Fa6aRKD4k7Qr3gQJuU6RpuwiyIOSxRYQmVZJeFIH/vbCMprRkl/RKgHRHZ+68XpCzNnjUPjLGcFUJTGjxhJGDtYYuKGs8al8QocXhYeQWUIu+2mE3LO1GmbvhKMHoWZkVagnjGO2cRi1SJoBbyw787Uz/pg9bjTDqtPQetSj41c3hBzevQYePvdIrBwa1j4Typz1GhPIoi48QHuwzmJ8q9CMhL5lLYRk57TGqKhGl8Gkhux4SwKPoWssVGy1XLLa8tJ3U34J1cgOn6JLUf9EjAfztTHwxheOLA03QiPagtmB34b1z1v0PFOsSjBOLlJWjxSYu6ee1vIdfO+VglQRPtWmDlPDpHC+k6UDrDNwZeQaRlVNibl1n4gyamPm7G8DkoV6VGZymiThvd6EHE1QnD5uUhJ2Rp4mM1PGUKO+V2dzD2oHvx31OT8uFmAw2Yyd3x4BTXZIX665Zi0pQXDUCU8IxFRzTpsGM1JjVBeaEYl6Pa8Pq+CR/9/BusMMXazpIZjYTp0vASXwZFtYY6NITHOsyGHV5eghyDsDV5RUFx6IqsWAci7rEdTEeWlHwU/hS+RBNqnU+J50LUWnzopqaN85qvQWTLvNcncFjE7+LXmoNZpMen5k4gzZt7Q9wav07BxUp05x62sV/dfkgu9wmng9K0ff7PxbsFU8=" \ No newline at end of file +window.hierarchyData = "eJyVlE+P2yAQxb8LZ7brYGOIb1X6R5XSbrXdtofVHhCZxGgJuEAO1SrfvbKjbrGdFHKyZL/x771hmBfkrA0eNY+U1rgsOSZV8YSRg60GGZQ1HjUviFRF/zBiD6hBX2136NZ2p8xdd5Jg9KzMBjWE1hgdnEYNUiaA2woJ/namf9OGvUYYSS28Rw0KfnPT/+Dmtaj/2Cq9cWBQ80iq+umIEanqyMVHCA/2GcxPFdqBkGfmUlmGpyNGZckjC59WQraQAJ5E10YuKesjl5RFvLWVQn8L1okdjNELwv+iBwL425n4ooXTi57GaER7UHuwh/DeOev+B4p1CcYoYkXJEHEZt/TzVtzDr4NysEmCp9p0wIqw6RyvhJGgdQbujDyDSMmUmNvXmTiDxmb57joweahXZZpDi3gfvD2EFkxQUvQ3KQk7I88gkmU8Jcp7ZXb3sHXg2+E+p6flQk0Gm473jgGnZJIX6665FiWjuFxyXBGGK8YwLQpMyRJTvsA1objmw7WhfBGZ+u7hXWe7L9ZISDqbidMtqEm8GVbWGJDpCY51GQxOxosgZwFc3V5WMMxKghllmHGCeTEsWlawMXytfIgm1TqfY+dCVTo8K6fhjbNa78Gk2zxXZ/DoJO+qFVqD2aXHZybOoE2P9gc4tf2dg4qUaQ6fnuK/vnwQMvcQzxel6MfjHxS0FU8=" \ No newline at end of file diff --git a/docs/classes/AuthenticationError.html b/docs/classes/AuthenticationError.html index 6fd73e24..8841350c 100644 --- a/docs/classes/AuthenticationError.html +++ b/docs/classes/AuthenticationError.html @@ -1,6 +1,6 @@ AuthenticationError | @auth0/auth0-react
@auth0/auth0-react
    Preparing search index...

    Class AuthenticationError

    Thrown when handling the redirect callback fails, will be one of Auth0's Authentication API's Standard Error Responses: https://auth0.com/docs/api/authentication?javascript#standard-error-responses

    -

    Hierarchy (View Summary)

    Index

    Constructors

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    appState error error_description diff --git a/docs/classes/ConnectError.html b/docs/classes/ConnectError.html index 2a8760b8..256fe08b 100644 --- a/docs/classes/ConnectError.html +++ b/docs/classes/ConnectError.html @@ -1,6 +1,6 @@ ConnectError | @auth0/auth0-react
    @auth0/auth0-react
      Preparing search index...

      Class ConnectError

      Thrown when handling the redirect callback for the connect flow fails, will be one of Auth0's Authentication API's Standard Error Responses: https://auth0.com/docs/api/authentication?javascript#standard-error-responses

      -

      Hierarchy (View Summary)

      Index

      Constructors

      Hierarchy (View Summary)

      Index

      Constructors

      Properties

      appState connection error diff --git a/docs/classes/GenericError.html b/docs/classes/GenericError.html index a064d756..ece42a93 100644 --- a/docs/classes/GenericError.html +++ b/docs/classes/GenericError.html @@ -1,5 +1,5 @@ GenericError | @auth0/auth0-react
      @auth0/auth0-react
        Preparing search index...

        Class GenericError

        Thrown when network requests to the Auth server fail.

        -

        Hierarchy (View Summary)

        Index

        Constructors

        Hierarchy (View Summary)

        Index

        Constructors

        Properties

        error error_description message diff --git a/docs/classes/MfaChallengeError.html b/docs/classes/MfaChallengeError.html index 9a19ab2c..926bbe87 100644 --- a/docs/classes/MfaChallengeError.html +++ b/docs/classes/MfaChallengeError.html @@ -2,7 +2,7 @@
        try {
        const challenge = await mfa.challenge({
        mfaToken: mfaToken,
        challengeType: 'otp',
        authenticatorId: 'otp|dev_123'
        });
        } catch (error) {
        if (error instanceof MfaChallengeError) {
        console.log(error.error); // 'too_many_attempts'
        console.log(error.error_description); // 'Rate limit exceeded'
        }
        }
        -

        Hierarchy (View Summary)

        Index

        Constructors

        Hierarchy (View Summary)

        Index

        Constructors

        Properties

        error error_description message diff --git a/docs/classes/MfaEnrollmentError.html b/docs/classes/MfaEnrollmentError.html index 8f00a723..9138f4d5 100644 --- a/docs/classes/MfaEnrollmentError.html +++ b/docs/classes/MfaEnrollmentError.html @@ -2,7 +2,7 @@
        try {
        const enrollment = await mfa.enroll({
        authenticator_types: ['otp']
        });
        } catch (error) {
        if (error instanceof MfaEnrollmentError) {
        console.log(error.error); // 'invalid_phone_number'
        console.log(error.error_description); // 'Invalid phone number format'
        }
        }
        -

        Hierarchy (View Summary)

        Index

        Constructors

        Hierarchy (View Summary)

        Index

        Constructors

        Properties

        error error_description message diff --git a/docs/classes/MfaEnrollmentFactorsError.html b/docs/classes/MfaEnrollmentFactorsError.html index 0722007a..267f09bd 100644 --- a/docs/classes/MfaEnrollmentFactorsError.html +++ b/docs/classes/MfaEnrollmentFactorsError.html @@ -2,7 +2,7 @@
        try {
        const factors = await mfa.getEnrollmentFactors(mfaToken);
        } catch (error) {
        if (error instanceof MfaEnrollmentFactorsError) {
        console.log(error.error); // 'mfa_context_not_found'
        console.log(error.error_description); // 'MFA context not found...'
        }
        }
        -

        Hierarchy (View Summary)

        Index

        Constructors

        Hierarchy (View Summary)

        Index

        Constructors

        Properties

        error error_description message diff --git a/docs/classes/MfaError.html b/docs/classes/MfaError.html index df33de5c..c69dfc91 100644 --- a/docs/classes/MfaError.html +++ b/docs/classes/MfaError.html @@ -1,6 +1,6 @@ MfaError | @auth0/auth0-react
        @auth0/auth0-react
          Preparing search index...

          Class MfaError

          Base class for MFA-related errors in auth0-spa-js. Extends GenericError for unified error hierarchy across the SDK.

          -

          Hierarchy (View Summary)

          Index

          Constructors

          Hierarchy (View Summary)

          Index

          Constructors

          Properties

          error error_description message diff --git a/docs/classes/MfaListAuthenticatorsError.html b/docs/classes/MfaListAuthenticatorsError.html index 991a8e49..6eab6cb3 100644 --- a/docs/classes/MfaListAuthenticatorsError.html +++ b/docs/classes/MfaListAuthenticatorsError.html @@ -2,7 +2,7 @@
          try {
          const authenticators = await mfa.getAuthenticators();
          } catch (error) {
          if (error instanceof MfaListAuthenticatorsError) {
          console.log(error.error); // 'access_denied'
          console.log(error.error_description); // 'Unauthorized'
          }
          }
          -

          Hierarchy (View Summary)

          Index

          Constructors

          Hierarchy (View Summary)

          Index

          Constructors

          Properties

          error error_description message diff --git a/docs/classes/MfaRequiredError.html b/docs/classes/MfaRequiredError.html index d2b8a596..76c54fe7 100644 --- a/docs/classes/MfaRequiredError.html +++ b/docs/classes/MfaRequiredError.html @@ -1,5 +1,5 @@ MfaRequiredError | @auth0/auth0-react
          @auth0/auth0-react
            Preparing search index...

            Class MfaRequiredError

            Error thrown when the token exchange results in a mfa_required error

            -

            Hierarchy (View Summary)

            Index

            Constructors

            Hierarchy (View Summary)

            Index

            Constructors

            Properties

            error error_description message diff --git a/docs/classes/MfaVerifyError.html b/docs/classes/MfaVerifyError.html index da76fc50..1d2a17e1 100644 --- a/docs/classes/MfaVerifyError.html +++ b/docs/classes/MfaVerifyError.html @@ -2,7 +2,7 @@
            try {
            const tokens = await mfa.verify({
            mfaToken: mfaToken,
            grant_type: 'http://auth0.com/oauth/grant-type/mfa-otp',
            otp: '123456'
            });
            } catch (error) {
            if (error instanceof MfaVerifyError) {
            console.log(error.error); // 'invalid_otp' or 'context_not_found'
            console.log(error.error_description); // Error details
            }
            }
            -

            Hierarchy (View Summary)

            Index

            Constructors

            Hierarchy (View Summary)

            Index

            Constructors

            Properties

            error error_description message diff --git a/docs/classes/MissingRefreshTokenError.html b/docs/classes/MissingRefreshTokenError.html index 3b059359..c6f0637c 100644 --- a/docs/classes/MissingRefreshTokenError.html +++ b/docs/classes/MissingRefreshTokenError.html @@ -1,5 +1,5 @@ MissingRefreshTokenError | @auth0/auth0-react
            @auth0/auth0-react
              Preparing search index...

              Class MissingRefreshTokenError

              Error thrown when there is no refresh token to use

              -

              Hierarchy (View Summary)

              Index

              Constructors

              Hierarchy (View Summary)

              Index

              Constructors

              Properties

              audience error error_description diff --git a/docs/classes/MyAccountApiError.html b/docs/classes/MyAccountApiError.html index 7303c6af..7ee8be47 100644 --- a/docs/classes/MyAccountApiError.html +++ b/docs/classes/MyAccountApiError.html @@ -2,7 +2,7 @@
              try {
              await myAccount.getAuthenticationMethods();
              } catch (err) {
              if (err instanceof MyAccountApiError) {
              console.error(err.status, err.title, err.detail);
              }
              }
              -

              Hierarchy

              • Error
                • MyAccountApiError
              Index

              Constructors

              Hierarchy

              • Error
                • MyAccountApiError
              Index

              Constructors

              Properties

              detail message name diff --git a/docs/classes/OAuthError.html b/docs/classes/OAuthError.html index 7a5cb0c1..4d0f02e7 100644 --- a/docs/classes/OAuthError.html +++ b/docs/classes/OAuthError.html @@ -1,7 +1,7 @@ OAuthError | @auth0/auth0-react
              @auth0/auth0-react
                Preparing search index...

                Class OAuthError

                An OAuth2 error will come from the authorization server and will have at least an error property which will be the error code. And possibly an error_description property

                See: https://openid.net/specs/openid-connect-core-1_0.html#rfc.section.3.1.2.6

                -

                Hierarchy

                • Error
                  • OAuthError
                Index

                Constructors

                Hierarchy

                • Error
                  • OAuthError
                Index

                Constructors

                • Parameters

                  • error: string
                  • Optionalerror_description: string

                  Returns OAuthError

                Properties

                error: string
                error_description?: string
                message: string
                name: string
                stack?: string
                stackTraceLimit: number

                The Error.stackTraceLimit property specifies the number of stack frames +

                Constructors

                • Parameters

                  • error: string
                  • Optionalerror_description: string

                  Returns OAuthError

                Properties

                error: string
                error_description?: string
                message: string
                name: string
                stack?: string
                stackTraceLimit: number

                The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

                The default value is 10 but may be set to any valid JavaScript number. Changes diff --git a/docs/classes/PasskeyChallengeError.html b/docs/classes/PasskeyChallengeError.html index 8f79901b..5b16f7b6 100644 --- a/docs/classes/PasskeyChallengeError.html +++ b/docs/classes/PasskeyChallengeError.html @@ -1,5 +1,5 @@ PasskeyChallengeError | @auth0/auth0-react

                @auth0/auth0-react
                  Preparing search index...

                  Class PasskeyChallengeError

                  Error thrown when requesting a passkey login challenge fails.

                  -

                  Hierarchy

                  • PasskeyError
                    • PasskeyChallengeError
                  Index

                  Constructors

                  Hierarchy

                  • PasskeyError
                    • PasskeyChallengeError
                  Index

                  Constructors

                  Properties

                  Methods

                  Constructors

                  • Parameters

                    • message: string
                    • Optionalcause: PasskeyApiErrorResponse

                    Returns PasskeyChallengeError

                  Properties

                  cause?: PasskeyApiErrorResponse
                  code: string
                  message: string
                  name: string
                  stack?: string
                  stackTraceLimit: number

                  The Error.stackTraceLimit property specifies the number of stack frames +

                  Constructors

                  • Parameters

                    • message: string
                    • Optionalcause: PasskeyApiErrorResponse

                    Returns PasskeyChallengeError

                  Properties

                  cause?: PasskeyApiErrorResponse
                  code: string
                  message: string
                  name: string
                  stack?: string
                  stackTraceLimit: number

                  The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

                  The default value is 10 but may be set to any valid JavaScript number. Changes diff --git a/docs/classes/PasskeyError.html b/docs/classes/PasskeyError.html index 6f4f265f..4160581e 100644 --- a/docs/classes/PasskeyError.html +++ b/docs/classes/PasskeyError.html @@ -1,4 +1,4 @@ -PasskeyError | @auth0/auth0-react

                  @auth0/auth0-react
                    Preparing search index...

                    Class PasskeyError

                    Hierarchy

                    • Error
                      • PasskeyError
                    Index

                    Constructors

                    constructor +PasskeyError | @auth0/auth0-react
                    @auth0/auth0-react
                      Preparing search index...

                      Class PasskeyError

                      Hierarchy

                      • Error
                        • PasskeyError
                      Index

                      Constructors

                      Properties

                      cause? code message diff --git a/docs/classes/PasskeyGetTokenError.html b/docs/classes/PasskeyGetTokenError.html index 91415e12..f19879e2 100644 --- a/docs/classes/PasskeyGetTokenError.html +++ b/docs/classes/PasskeyGetTokenError.html @@ -1,7 +1,7 @@ PasskeyGetTokenError | @auth0/auth0-react
                      @auth0/auth0-react
                        Preparing search index...

                        Class PasskeyGetTokenError

                        Error thrown when exchanging a passkey credential for tokens fails.

                        Unlike the challenge errors, this carries mfa_token / mfa_requirements on its cause when the server responds with mfa_required.

                        -

                        Hierarchy

                        • PasskeyError
                          • PasskeyGetTokenError
                        Index

                        Constructors

                        Hierarchy

                        • PasskeyError
                          • PasskeyGetTokenError
                        Index

                        Constructors

                        Properties

                        cause? code message @@ -10,7 +10,7 @@ stackTraceLimit

                        Methods

                        Constructors

                        • Parameters

                          • message: string
                          • Optionalcause: PasskeyGetTokenApiErrorResponse

                          Returns PasskeyGetTokenError

                        Properties

                        cause?: PasskeyGetTokenApiErrorResponse
                        code: string
                        message: string
                        name: string
                        stack?: string
                        stackTraceLimit: number

                        The Error.stackTraceLimit property specifies the number of stack frames +

                        Constructors

                        • Parameters

                          • message: string
                          • Optionalcause: PasskeyGetTokenApiErrorResponse

                          Returns PasskeyGetTokenError

                        Properties

                        cause?: PasskeyGetTokenApiErrorResponse
                        code: string
                        message: string
                        name: string
                        stack?: string
                        stackTraceLimit: number

                        The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

                        The default value is 10 but may be set to any valid JavaScript number. Changes diff --git a/docs/classes/PasskeyRegisterError.html b/docs/classes/PasskeyRegisterError.html index 734aaaae..bb22af9f 100644 --- a/docs/classes/PasskeyRegisterError.html +++ b/docs/classes/PasskeyRegisterError.html @@ -1,5 +1,5 @@ PasskeyRegisterError | @auth0/auth0-react

                        @auth0/auth0-react
                          Preparing search index...

                          Class PasskeyRegisterError

                          Error thrown when requesting a passkey register challenge fails.

                          -

                          Hierarchy

                          • PasskeyError
                            • PasskeyRegisterError
                          Index

                          Constructors

                          Hierarchy

                          • PasskeyError
                            • PasskeyRegisterError
                          Index

                          Constructors

                          Properties

                          Methods

                          Constructors

                          • Parameters

                            • message: string
                            • Optionalcause: PasskeyApiErrorResponse

                            Returns PasskeyRegisterError

                          Properties

                          cause?: PasskeyApiErrorResponse
                          code: string
                          message: string
                          name: string
                          stack?: string
                          stackTraceLimit: number

                          The Error.stackTraceLimit property specifies the number of stack frames +

                          Constructors

                          • Parameters

                            • message: string
                            • Optionalcause: PasskeyApiErrorResponse

                            Returns PasskeyRegisterError

                          Properties

                          cause?: PasskeyApiErrorResponse
                          code: string
                          message: string
                          name: string
                          stack?: string
                          stackTraceLimit: number

                          The Error.stackTraceLimit property specifies the number of stack frames collected by a stack trace (whether generated by new Error().stack or Error.captureStackTrace(obj)).

                          The default value is 10 but may be set to any valid JavaScript number. Changes diff --git a/docs/classes/PopupCancelledError.html b/docs/classes/PopupCancelledError.html index 115d923f..76097af7 100644 --- a/docs/classes/PopupCancelledError.html +++ b/docs/classes/PopupCancelledError.html @@ -1,5 +1,5 @@ PopupCancelledError | @auth0/auth0-react

                          @auth0/auth0-react
                            Preparing search index...

                            Class PopupCancelledError

                            Thrown when network requests to the Auth server fail.

                            -

                            Hierarchy (View Summary)

                            Index

                            Constructors

                            Hierarchy (View Summary)

                            Index

                            Constructors

                            Properties

                            error error_description message diff --git a/docs/classes/PopupOpenError.html b/docs/classes/PopupOpenError.html index a91d0742..5a5b3f7f 100644 --- a/docs/classes/PopupOpenError.html +++ b/docs/classes/PopupOpenError.html @@ -1,5 +1,5 @@ PopupOpenError | @auth0/auth0-react
                            @auth0/auth0-react
                              Preparing search index...

                              Class PopupOpenError

                              Thrown when network requests to the Auth server fail.

                              -

                              Hierarchy (View Summary)

                              Index

                              Constructors

                              Hierarchy (View Summary)

                              Index

                              Constructors

                              Properties

                              error error_description message diff --git a/docs/classes/PopupTimeoutError.html b/docs/classes/PopupTimeoutError.html index ef174303..1bb9809c 100644 --- a/docs/classes/PopupTimeoutError.html +++ b/docs/classes/PopupTimeoutError.html @@ -1,5 +1,5 @@ PopupTimeoutError | @auth0/auth0-react
                              @auth0/auth0-react
                                Preparing search index...

                                Class PopupTimeoutError

                                Error thrown when the login popup times out (if the user does not complete auth)

                                -

                                Hierarchy (View Summary)

                                Index

                                Constructors

                                Hierarchy (View Summary)

                                Index

                                Constructors

                                Properties

                                error error_description message diff --git a/docs/classes/TimeoutError.html b/docs/classes/TimeoutError.html index 52d08b9f..91ed4178 100644 --- a/docs/classes/TimeoutError.html +++ b/docs/classes/TimeoutError.html @@ -1,6 +1,6 @@ TimeoutError | @auth0/auth0-react
                                @auth0/auth0-react
                                  Preparing search index...

                                  Class TimeoutError

                                  Thrown when silent auth times out (usually due to a configuration issue) or when network requests to the Auth server timeout.

                                  -

                                  Hierarchy (View Summary)

                                  Index

                                  Constructors

                                  Hierarchy (View Summary)

                                  Index

                                  Constructors

                                  Properties

                                  error error_description message diff --git a/docs/classes/UseDpopNonceError.html b/docs/classes/UseDpopNonceError.html index 352b5457..fd66c6eb 100644 --- a/docs/classes/UseDpopNonceError.html +++ b/docs/classes/UseDpopNonceError.html @@ -1,5 +1,5 @@ UseDpopNonceError | @auth0/auth0-react
                                  @auth0/auth0-react
                                    Preparing search index...

                                    Class UseDpopNonceError

                                    Error thrown when the wrong DPoP nonce is used and a potential subsequent retry wasn't able to fix it.

                                    -

                                    Hierarchy (View Summary)

                                    Index

                                    Constructors

                                    Hierarchy (View Summary)

                                    Index

                                    Constructors

                                    Properties

                                    error error_description message diff --git a/docs/classes/User.html b/docs/classes/User.html index dc706deb..ec202348 100644 --- a/docs/classes/User.html +++ b/docs/classes/User.html @@ -1,4 +1,4 @@ -User | @auth0/auth0-react
                                    @auth0/auth0-react
                                      Preparing search index...

                                      Class User

                                      Indexable

                                      • [key: string]: any
                                      Index

                                      Constructors

                                      constructor +User | @auth0/auth0-react
                                      @auth0/auth0-react
                                        Preparing search index...

                                        Class User

                                        Indexable

                                        • [key: string]: any
                                        Index

                                        Constructors

                                        Properties

                                        Constructors

                                        Properties

                                        act?: ActClaim
                                        address?: string
                                        birthdate?: string
                                        email?: string
                                        email_verified?: boolean
                                        family_name?: string
                                        gender?: string
                                        given_name?: string
                                        locale?: string
                                        middle_name?: string
                                        name?: string
                                        nickname?: string
                                        phone_number?: string
                                        phone_number_verified?: boolean
                                        picture?: string
                                        preferred_username?: string
                                        profile?: string
                                        sub?: string
                                        updated_at?: string
                                        website?: string
                                        zoneinfo?: string
                                        +

                                        Constructors

                                        Properties

                                        act?: ActClaim
                                        address?: string
                                        birthdate?: string
                                        email?: string
                                        email_verified?: boolean
                                        family_name?: string
                                        gender?: string
                                        given_name?: string
                                        locale?: string
                                        middle_name?: string
                                        name?: string
                                        nickname?: string
                                        phone_number?: string
                                        phone_number_verified?: boolean
                                        picture?: string
                                        preferred_username?: string
                                        profile?: string
                                        sub?: string
                                        updated_at?: string
                                        website?: string
                                        zoneinfo?: string
                                        diff --git a/docs/functions/Auth0Provider.html b/docs/functions/Auth0Provider.html index f538bbff..7379a439 100644 --- a/docs/functions/Auth0Provider.html +++ b/docs/functions/Auth0Provider.html @@ -2,4 +2,4 @@

                                        Provides the Auth0Context to its child components.

                                        -

                                        Type Parameters

                                        Parameters

                                        Returns Element

                                        +

                                        Type Parameters

                                        Parameters

                                        Returns Element

                                        diff --git a/docs/functions/useAuth0.html b/docs/functions/useAuth0.html index 115e2b97..77a1eece 100644 --- a/docs/functions/useAuth0.html +++ b/docs/functions/useAuth0.html @@ -3,4 +3,4 @@

                                        Use the useAuth0 hook in your components to access the auth state and methods.

                                        TUser is an optional type param to provide a type to the user field.

                                        -

                                        Type Parameters

                                        Parameters

                                        Returns Auth0ContextInterface<TUser>

                                        +

                                        Type Parameters

                                        Parameters

                                        Returns Auth0ContextInterface<TUser>

                                        diff --git a/docs/functions/withAuth0.html b/docs/functions/withAuth0.html index 34369baf..2fbbc46d 100644 --- a/docs/functions/withAuth0.html +++ b/docs/functions/withAuth0.html @@ -4,4 +4,4 @@

                                        Wrap your class components in this Higher Order Component to give them access to the Auth0Context.

                                        Providing a context as the second argument allows you to configure the Auth0Provider the Auth0Context should come from f you have multiple within your application.

                                        -

                                        Type Parameters

                                        Parameters

                                        Returns ComponentType<Omit<P, "auth0">>

                                        +

                                        Type Parameters

                                        Parameters

                                        Returns ComponentType<Omit<P, "auth0">>

                                        diff --git a/docs/functions/withAuthenticationRequired.html b/docs/functions/withAuthenticationRequired.html index 472a970b..d87d25cf 100644 --- a/docs/functions/withAuthenticationRequired.html +++ b/docs/functions/withAuthenticationRequired.html @@ -3,4 +3,4 @@

                                        When you wrap your components in this Higher Order Component and an anonymous user visits your component they will be redirected to the login page; after login they will be returned to the page they were redirected from.

                                        -

                                        Type Parameters

                                        • P extends object

                                        Parameters

                                        Returns FC<P>

                                        +

                                        Type Parameters

                                        • P extends object

                                        Parameters

                                        Returns FC<P>

                                        diff --git a/docs/hierarchy.html b/docs/hierarchy.html index 4f74e34c..580c795b 100644 --- a/docs/hierarchy.html +++ b/docs/hierarchy.html @@ -1 +1 @@ -@auth0/auth0-react
                                        @auth0/auth0-react
                                          Preparing search index...
                                          +@auth0/auth0-react
                                          @auth0/auth0-react
                                            Preparing search index...
                                            diff --git a/docs/interfaces/Auth0ContextInterface.html b/docs/interfaces/Auth0ContextInterface.html index 04e77789..7e8da3cc 100644 --- a/docs/interfaces/Auth0ContextInterface.html +++ b/docs/interfaces/Auth0ContextInterface.html @@ -1,5 +1,5 @@ Auth0ContextInterface | @auth0/auth0-react
                                            @auth0/auth0-react
                                              Preparing search index...

                                              Interface Auth0ContextInterface<TUser>

                                              Contains the authenticated state and authentication methods provided by the useAuth0 hook.

                                              -
                                              interface Auth0ContextInterface<TUser extends User = User> {
                                                  connectAccountWithRedirect: (
                                                      options: RedirectConnectAccountOptions,
                                                  ) => Promise<void>;
                                                  createFetcher: <TOutput extends CustomFetchMinimalOutput = Response>(
                                                      config?: FetcherConfig<TOutput>,
                                                  ) => Fetcher<TOutput>;
                                                  customTokenExchange: (
                                                      options: CustomTokenExchangeOptions,
                                                  ) => Promise<TokenEndpointResponse>;
                                                  error: Error | undefined;
                                                  exchangeToken: (
                                                      options: CustomTokenExchangeOptions,
                                                  ) => Promise<TokenEndpointResponse>;
                                                  generateDpopProof: (
                                                      params: {
                                                          accessToken: string;
                                                          method: string;
                                                          nonce?: string;
                                                          url: string;
                                                      },
                                                  ) => Promise<string>;
                                                  getAccessTokenSilently: {
                                                      (
                                                          options: GetTokenSilentlyOptions & { detailedResponse: true },
                                                      ): Promise<GetTokenSilentlyVerboseResponse>;
                                                      (options?: GetTokenSilentlyOptions): Promise<string>;
                                                      (
                                                          options: GetTokenSilentlyOptions,
                                                      ): Promise<string | GetTokenSilentlyVerboseResponse>;
                                                  };
                                                  getAccessTokenWithPopup: (
                                                      options?: GetTokenWithPopupOptions,
                                                      config?: PopupConfigOptions,
                                                  ) => Promise<string | undefined>;
                                                  getConfiguration: () => Readonly<ClientConfiguration>;
                                                  getDpopNonce: (id?: string) => Promise<string | undefined>;
                                                  getIdTokenClaims: () => Promise<IdToken | undefined>;
                                                  handleRedirectCallback: (
                                                      url?: string,
                                                  ) => Promise<ConnectAccountRedirectResult | RedirectLoginResult<any>>;
                                                  isAuthenticated: boolean;
                                                  isLoading: boolean;
                                                  loginWithCustomTokenExchange: (
                                                      options: CustomTokenExchangeOptions,
                                                  ) => Promise<TokenEndpointResponse>;
                                                  loginWithPopup: (
                                                      options?: PopupLoginOptions,
                                                      config?: PopupConfigOptions,
                                                  ) => Promise<void>;
                                                  loginWithRedirect: (
                                                      options?: RedirectLoginOptions<AppState>,
                                                  ) => Promise<void>;
                                                  logout: (options?: LogoutOptions) => Promise<void>;
                                                  mfa: MfaApiClient;
                                                  myAccount: MyAccountApiClient;
                                                  passkey: PasskeyApiClient;
                                                  setDpopNonce: (nonce: string, id?: string) => Promise<void>;
                                                  user: TUser | undefined;
                                              }

                                              Type Parameters

                                              Hierarchy

                                              • AuthState<TUser>
                                                • Auth0ContextInterface
                                              Index

                                              Properties

                                              interface Auth0ContextInterface<TUser extends User = User> {
                                                  connectAccountWithRedirect: (
                                                      options: RedirectConnectAccountOptions,
                                                  ) => Promise<void>;
                                                  createFetcher: <TOutput extends CustomFetchMinimalOutput = Response>(
                                                      config?: FetcherConfig<TOutput>,
                                                  ) => Fetcher<TOutput>;
                                                  customTokenExchange: (
                                                      options: CustomTokenExchangeOptions,
                                                  ) => Promise<TokenEndpointResponse>;
                                                  error: Error | undefined;
                                                  exchangeToken: (
                                                      options: CustomTokenExchangeOptions,
                                                  ) => Promise<TokenEndpointResponse>;
                                                  generateDpopProof: (
                                                      params: {
                                                          accessToken: string;
                                                          method: string;
                                                          nonce?: string;
                                                          url: string;
                                                      },
                                                  ) => Promise<string>;
                                                  getAccessTokenSilently: {
                                                      (
                                                          options: GetTokenSilentlyOptions & { detailedResponse: true },
                                                      ): Promise<GetTokenSilentlyVerboseResponse>;
                                                      (options?: GetTokenSilentlyOptions): Promise<string>;
                                                      (
                                                          options: GetTokenSilentlyOptions,
                                                      ): Promise<string | GetTokenSilentlyVerboseResponse>;
                                                  };
                                                  getAccessTokenWithPopup: (
                                                      options?: GetTokenWithPopupOptions,
                                                      config?: PopupConfigOptions,
                                                  ) => Promise<string | undefined>;
                                                  getConfiguration: () => Readonly<ClientConfiguration>;
                                                  getDpopNonce: (id?: string) => Promise<string | undefined>;
                                                  getIdTokenClaims: () => Promise<IdToken | undefined>;
                                                  handleRedirectCallback: (
                                                      url?: string,
                                                  ) => Promise<ConnectAccountRedirectResult | RedirectLoginResult<any>>;
                                                  isAuthenticated: boolean;
                                                  isLoading: boolean;
                                                  loginWithCustomTokenExchange: (
                                                      options: CustomTokenExchangeOptions,
                                                  ) => Promise<TokenEndpointResponse>;
                                                  loginWithPopup: (
                                                      options?: PopupLoginOptions,
                                                      config?: PopupConfigOptions,
                                                  ) => Promise<void>;
                                                  loginWithRedirect: (
                                                      options?: RedirectLoginOptions<AppState>,
                                                  ) => Promise<void>;
                                                  logout: (options?: LogoutOptions) => Promise<void>;
                                                  mfa: MfaApiClient;
                                                  myAccount: MyAccountApiClient;
                                                  passkey: PasskeyApiClient;
                                                  setDpopNonce: (nonce: string, id?: string) => Promise<void>;
                                                  user: TUser | undefined;
                                              }

                                              Type Parameters

                                              Hierarchy

                                              • AuthState<TUser>
                                                • Auth0ContextInterface
                                              Index

                                              Properties

                                              connectAccountWithRedirect createFetcher customTokenExchange error @@ -30,7 +30,7 @@ where the user can authenticate and authorize the account to be connected.

                                              If connecting the account is successful onRedirectCallback will be called with the details of the connected account.

                                              -
                                              createFetcher: <TOutput extends CustomFetchMinimalOutput = Response>(
                                                  config?: FetcherConfig<TOutput>,
                                              ) => Fetcher<TOutput>

                                              Returns a new Fetcher class that will contain a fetchWithAuth() method. +

                                              createFetcher: <TOutput extends CustomFetchMinimalOutput = Response>(
                                                  config?: FetcherConfig<TOutput>,
                                              ) => Fetcher<TOutput>

                                              Returns a new Fetcher class that will contain a fetchWithAuth() method. This is a drop-in replacement for the Fetch API's fetch() method, but will handle certain authentication logic for you, like building the proper auth headers or managing DPoP nonces and retries automatically.

                                              @@ -40,7 +40,7 @@ handle certain authentication logic for you, like building the proper auth headers or managing DPoP nonces and retries automatically.

                                              Check the EXAMPLES.md file for a deeper look into this method.

                                              -

                                              Type Parameters

                                              • TOutput extends CustomFetchMinimalOutput = Response

                                              Parameters

                                              Returns Fetcher<TOutput>

                                              customTokenExchange: (
                                                  options: CustomTokenExchangeOptions,
                                              ) => Promise<TokenEndpointResponse>
                                              const tokenResponse = await customTokenExchange({
                                              subject_token: 'ey...',
                                              subject_token_type: 'urn:acme:legacy-system-token',
                                              actor_token: 'ey...',
                                              actor_token_type: 'https://idp.example.com/token-type/agent',
                                              }); +

                                              Type Parameters

                                              • TOutput extends CustomFetchMinimalOutput = Response

                                              Parameters

                                              Returns Fetcher<TOutput>

                                              customTokenExchange: (
                                                  options: CustomTokenExchangeOptions,
                                              ) => Promise<TokenEndpointResponse>
                                              const tokenResponse = await customTokenExchange({
                                              subject_token: 'ey...',
                                              subject_token_type: 'urn:acme:legacy-system-token',
                                              actor_token: 'ey...',
                                              actor_token_type: 'https://idp.example.com/token-type/agent',
                                              });

                                              Exchanges an external subject token for Auth0 tokens without affecting the current session.

                                              @@ -52,7 +52,7 @@ refresh_token in the response is expected and will not cause an error.

                                              Type Declaration

                                              error: Error | undefined
                                              exchangeToken: (
                                                  options: CustomTokenExchangeOptions,
                                              ) => Promise<TokenEndpointResponse>

                                              Type Declaration

                                              error: Error | undefined
                                              exchangeToken: (
                                                  options: CustomTokenExchangeOptions,
                                              ) => Promise<TokenEndpointResponse>

                                              Type Declaration

                                              Use loginWithCustomTokenExchange() instead. This method will be removed in the next major version.

                                              const tokenResponse = await exchangeToken({
                                              subject_token: 'external_token_value',
                                              subject_token_type: 'urn:acme:legacy-system-token',
                                              scope: 'openid profile email'
                                              }); @@ -66,13 +66,13 @@
                                              // Instead of:
                                              const tokens = await exchangeToken(options);

                                              // Use:
                                              const tokens = await loginWithCustomTokenExchange(options);
                                              -
                                              generateDpopProof: (
                                                  params: {
                                                      accessToken: string;
                                                      method: string;
                                                      nonce?: string;
                                                      url: string;
                                                  },
                                              ) => Promise<string>

                                              Returns a string to be used to demonstrate possession of the private +

                                              generateDpopProof: (
                                                  params: {
                                                      accessToken: string;
                                                      method: string;
                                                      nonce?: string;
                                                      url: string;
                                                  },
                                              ) => Promise<string>

                                              Returns a string to be used to demonstrate possession of the private key used to cryptographically bind access tokens with DPoP.

                                              It requires enabling the Auth0ClientOptions.useDpop option.

                                              Type Declaration

                                                • (
                                                      params: {
                                                          accessToken: string;
                                                          method: string;
                                                          nonce?: string;
                                                          url: string;
                                                      },
                                                  ): Promise<string>
                                                • Returns a string to be used to demonstrate possession of the private key used to cryptographically bind access tokens with DPoP.

                                                  It requires enabling the Auth0ClientOptions.useDpop option.

                                                  -

                                                  Parameters

                                                  • params: { accessToken: string; method: string; nonce?: string; url: string }

                                                  Returns Promise<string>

                                              getAccessTokenSilently: {
                                                  (
                                                      options: GetTokenSilentlyOptions & { detailedResponse: true },
                                                  ): Promise<GetTokenSilentlyVerboseResponse>;
                                                  (options?: GetTokenSilentlyOptions): Promise<string>;
                                                  (
                                                      options: GetTokenSilentlyOptions,
                                                  ): Promise<string | GetTokenSilentlyVerboseResponse>;
                                              }
                                              const token = await getAccessTokenSilently(options);
                                              +

                                              Parameters

                                              • params: { accessToken: string; method: string; nonce?: string; url: string }

                                              Returns Promise<string>

                                              getAccessTokenSilently: {
                                                  (
                                                      options: GetTokenSilentlyOptions & { detailedResponse: true },
                                                  ): Promise<GetTokenSilentlyVerboseResponse>;
                                                  (options?: GetTokenSilentlyOptions): Promise<string>;
                                                  (
                                                      options: GetTokenSilentlyOptions,
                                                  ): Promise<string | GetTokenSilentlyVerboseResponse>;
                                              }
                                              const token = await getAccessTokenSilently(options);
                                               

                                              If there's a valid token stored, return it. Otherwise, opens an @@ -91,7 +91,7 @@ back to using an iframe to make the token exchange.

                                              Note that in all cases, falling back to an iframe requires access to the auth0 cookie.

                                              -
                                              getAccessTokenWithPopup: (
                                                  options?: GetTokenWithPopupOptions,
                                                  config?: PopupConfigOptions,
                                              ) => Promise<string | undefined>
                                              const token = await getTokenWithPopup(options, config);
                                              +
                                              getAccessTokenWithPopup: (
                                                  options?: GetTokenWithPopupOptions,
                                                  config?: PopupConfigOptions,
                                              ) => Promise<string | undefined>
                                              const token = await getTokenWithPopup(options, config);
                                               

                                              Get an access token interactively.

                                              @@ -99,7 +99,7 @@ provided as arguments. Random and secure state and nonce parameters will be auto-generated. If the response is successful, results will be valid according to their expiration times.

                                              -
                                              getConfiguration: () => Readonly<ClientConfiguration>
                                              const config = getConfiguration();
                                              // { domain: 'tenant.auth0.com', clientId: 'abc123' } +
                                              getConfiguration: () => Readonly<ClientConfiguration>
                                              const config = getConfiguration();
                                              // { domain: 'tenant.auth0.com', clientId: 'abc123' }

                                              Returns a readonly copy of the initialization configuration @@ -109,7 +109,7 @@

                                              const auth0 = new Auth0Client({
                                              domain: 'tenant.auth0.com',
                                              clientId: 'abc123'
                                              });

                                              const config = auth0.getConfiguration();
                                              // { domain: 'tenant.auth0.com', clientId: 'abc123' }
                                              -
                                              getDpopNonce: (id?: string) => Promise<string | undefined>

                                              Returns the current DPoP nonce used for making requests to Auth0.

                                              +
                                              getDpopNonce: (id?: string) => Promise<string | undefined>

                                              Returns the current DPoP nonce used for making requests to Auth0.

                                              It can return undefined because when starting fresh it will not be populated until after the first response from the server.

                                              It requires enabling the Auth0ClientOptions.useDpop option.

                                              @@ -124,16 +124,16 @@

                                              The identifier of a nonce: if absent, it will get the nonce used for requests to Auth0. Otherwise, it will be used to select a specific non-Auth0 nonce.

                                              -
                                              getIdTokenClaims: () => Promise<IdToken | undefined>
                                              const claims = await getIdTokenClaims();
                                              +
                                              getIdTokenClaims: () => Promise<IdToken | undefined>
                                              const claims = await getIdTokenClaims();
                                               

                                              Returns all claims from the id_token if available.

                                              -
                                              handleRedirectCallback: (
                                                  url?: string,
                                              ) => Promise<ConnectAccountRedirectResult | RedirectLoginResult<any>>

                                              After the browser redirects back to the callback page, +

                                              handleRedirectCallback: (
                                                  url?: string,
                                              ) => Promise<ConnectAccountRedirectResult | RedirectLoginResult<any>>

                                              After the browser redirects back to the callback page, call handleRedirectCallback to handle success and error responses from Auth0. If the response is successful, results will be valid according to their expiration times.

                                              Type Declaration

                                                • (url?: string): Promise<ConnectAccountRedirectResult | RedirectLoginResult<any>>
                                                • Parameters

                                                  • Optionalurl: string

                                                    The URL to that should be used to retrieve the state and code values. Defaults to window.location.href if not given.

                                                    -

                                                  Returns Promise<ConnectAccountRedirectResult | RedirectLoginResult<any>>

                                              isAuthenticated: boolean
                                              isLoading: boolean
                                              loginWithCustomTokenExchange: (
                                                  options: CustomTokenExchangeOptions,
                                              ) => Promise<TokenEndpointResponse>
                                              await loginWithCustomTokenExchange(options);
                                              +

                                              Returns Promise<ConnectAccountRedirectResult | RedirectLoginResult<any>>

                                              isAuthenticated: boolean
                                              isLoading: boolean
                                              loginWithCustomTokenExchange: (
                                                  options: CustomTokenExchangeOptions,
                                              ) => Promise<TokenEndpointResponse>
                                              await loginWithCustomTokenExchange(options);
                                               

                                              Exchanges an external subject token for Auth0 tokens and logs the user in. @@ -157,7 +157,7 @@

                                              const options = {
                                              subject_token: 'eyJhbGciOiJIUzI1NiIsInR5cCI6Ikp...',
                                              subject_token_type: 'urn:acme:legacy-system-token',
                                              scope: 'openid profile email',
                                              audience: 'https://api.example.com',
                                              organization: 'org_12345'
                                              };

                                              try {
                                              const tokenResponse = await loginWithCustomTokenExchange(options);
                                              console.log('Access token:', tokenResponse.access_token);

                                              // User is now logged in - access user info
                                              const user = await getUser();
                                              console.log('Logged in user:', user);
                                              } catch (error) {
                                              console.error('Token exchange failed:', error);
                                              }
                                              -
                                              loginWithPopup: (
                                                  options?: PopupLoginOptions,
                                                  config?: PopupConfigOptions,
                                              ) => Promise<void>
                                              await loginWithPopup(options, config);
                                              +
                                              loginWithPopup: (
                                                  options?: PopupLoginOptions,
                                                  config?: PopupConfigOptions,
                                              ) => Promise<void>
                                              await loginWithPopup(options, config);
                                               

                                              Opens a popup with the /authorize URL using the parameters @@ -167,20 +167,20 @@

                                              IMPORTANT: This method has to be called from an event handler that was started by the user like a button click, for example, otherwise the popup will be blocked in most browsers.

                                              -
                                              loginWithRedirect: (options?: RedirectLoginOptions<AppState>) => Promise<void>
                                              await loginWithRedirect(options);
                                              +
                                              loginWithRedirect: (options?: RedirectLoginOptions<AppState>) => Promise<void>
                                              await loginWithRedirect(options);
                                               

                                              Performs a redirect to /authorize using the parameters provided as arguments. Random and secure state and nonce parameters will be auto-generated.

                                              -
                                              logout: (options?: LogoutOptions) => Promise<void>
                                              auth0.logout({ logoutParams: { returnTo: window.location.origin } });
                                              +
                                              logout: (options?: LogoutOptions) => Promise<void>
                                              auth0.logout({ logoutParams: { returnTo: window.location.origin } });
                                               

                                              Clears the application session and performs a redirect to /v2/logout, using the parameters provided as arguments, to clear the Auth0 session. If the logoutParams.federated option is specified, it also clears the Identity Provider session. Read more about how Logout works at Auth0.

                                              -
                                              const { mfa } = useAuth0();
                                              const authenticators = await mfa.getAuthenticators(mfaToken); +
                                              const { mfa } = useAuth0();
                                              const authenticators = await mfa.getAuthenticators(mfaToken);

                                              MFA API client for Multi-Factor Authentication operations.

                                              @@ -195,7 +195,7 @@
                                              const { mfa, getAccessTokenSilently } = useAuth0();

                                              try {
                                              await getAccessTokenSilently();
                                              } catch (error) {
                                              if (error.error === 'mfa_required') {
                                              // Check if enrollment is needed
                                              const factors = await mfa.getEnrollmentFactors(error.mfa_token);

                                              if (factors.length > 0) {
                                              // Enroll in OTP
                                              const enrollment = await mfa.enroll({
                                              mfaToken: error.mfa_token,
                                              factorType: 'otp'
                                              });
                                              console.log('QR Code:', enrollment.barcodeUri);
                                              }

                                              // Get authenticators and challenge
                                              const authenticators = await mfa.getAuthenticators(error.mfa_token);
                                              await mfa.challenge({
                                              mfaToken: error.mfa_token,
                                              challengeType: 'otp',
                                              authenticatorId: authenticators[0].id
                                              });

                                              // Verify with user's code
                                              const tokens = await mfa.verify({
                                              mfaToken: error.mfa_token,
                                              otp: userCode
                                              });
                                              }
                                              }
                                              -
                                              const { myAccount } = useAuth0();
                                              const factors = await myAccount.getFactors(); +
                                              const { myAccount } = useAuth0();
                                              const factors = await myAccount.getFactors();

                                              MyAccount API client for self-service account management operations.

                                              @@ -213,7 +213,7 @@
                                              const { myAccount } = useAuth0();

                                              // List all enrolled authentication methods
                                              const methods = await myAccount.getAuthenticationMethods();

                                              // Enroll a new passkey
                                              const challenge = await myAccount.enrollmentChallenge({ type: 'passkey' });
                                              const credential = await navigator.credentials.create({ publicKey: challenge.authn_params_public_key });
                                              await myAccount.enrollmentVerify({ type: 'passkey', auth_session: challenge.auth_session, location: challenge.location, authn_response: credential });

                                              // Remove an authentication method
                                              await myAccount.deleteAuthenticationMethod('method-id');
                                              -
                                              const { passkey } = useAuth0();
                                              const tokens = await passkey.signup({ email: 'user@example.com' }); +
                                              const { passkey } = useAuth0();
                                              const tokens = await passkey.signup({ email: 'user@example.com' });

                                              Passkey API client for WebAuthn-based passwordless authentication.

                                              @@ -223,7 +223,7 @@

                                              Both methods exchange the WebAuthn credential for Auth0 tokens and update isAuthenticated / user in the same way as loginWithPopup.

                                              -
                                              setDpopNonce: (nonce: string, id?: string) => Promise<void>

                                              Sets the current DPoP nonce used for making requests to Auth0.

                                              +
                                              setDpopNonce: (nonce: string, id?: string) => Promise<void>

                                              Sets the current DPoP nonce used for making requests to Auth0.

                                              It requires enabling the Auth0ClientOptions.useDpop option.

                                              Type Declaration

                                                • (nonce: string, id?: string): Promise<void>
                                                • Sets the current DPoP nonce used for making requests to Auth0.

                                                  It requires enabling the Auth0ClientOptions.useDpop option.

                                                  @@ -235,4 +235,4 @@

                                                  The identifier of a nonce: if absent, it will set the nonce used for requests to Auth0. Otherwise, it will be used to select a specific non-Auth0 nonce.

                                                  -
                                              user: TUser | undefined
                                              +
                                              user: TUser | undefined
                                              diff --git a/docs/interfaces/EnrollEmailParams.html b/docs/interfaces/EnrollEmailParams.html index fc762b19..426a520c 100644 --- a/docs/interfaces/EnrollEmailParams.html +++ b/docs/interfaces/EnrollEmailParams.html @@ -1,5 +1,5 @@ EnrollEmailParams | @auth0/auth0-react
                                              @auth0/auth0-react
                                                Preparing search index...

                                                Interface EnrollEmailParams

                                                Email enrollment parameters

                                                -
                                                interface EnrollEmailParams {
                                                    email?: string;
                                                    factorType: "email";
                                                    mfaToken: string;
                                                }

                                                Hierarchy

                                                • EnrollBaseParams
                                                  • EnrollEmailParams
                                                Index

                                                Properties

                                                interface EnrollEmailParams {
                                                    email?: string;
                                                    factorType: "email";
                                                    mfaToken: string;
                                                }

                                                Hierarchy

                                                • EnrollBaseParams
                                                  • EnrollEmailParams
                                                Index

                                                Properties

                                                email?: string

                                                Email address (optional, uses user's email if not provided)

                                                diff --git a/docs/interfaces/EnrollOtpParams.html b/docs/interfaces/EnrollOtpParams.html index c5378877..16c9f959 100644 --- a/docs/interfaces/EnrollOtpParams.html +++ b/docs/interfaces/EnrollOtpParams.html @@ -1,5 +1,5 @@ EnrollOtpParams | @auth0/auth0-react
                                                @auth0/auth0-react
                                                  Preparing search index...

                                                  Interface EnrollOtpParams

                                                  OTP (Time-based One-Time Password) enrollment parameters

                                                  -
                                                  interface EnrollOtpParams {
                                                      factorType: "otp";
                                                      mfaToken: string;
                                                  }

                                                  Hierarchy

                                                  • EnrollBaseParams
                                                    • EnrollOtpParams
                                                  Index

                                                  Properties

                                                  interface EnrollOtpParams {
                                                      factorType: "otp";
                                                      mfaToken: string;
                                                  }

                                                  Hierarchy

                                                  • EnrollBaseParams
                                                    • EnrollOtpParams
                                                  Index

                                                  Properties

                                                  Properties

                                                  factorType: "otp"

                                                  The factor type for enrollment

                                                  mfaToken: string

                                                  MFA token from mfa_required error

                                                  diff --git a/docs/interfaces/EnrollPushParams.html b/docs/interfaces/EnrollPushParams.html index f78ed97e..c8c3b2b5 100644 --- a/docs/interfaces/EnrollPushParams.html +++ b/docs/interfaces/EnrollPushParams.html @@ -1,5 +1,5 @@ EnrollPushParams | @auth0/auth0-react
                                                  @auth0/auth0-react
                                                    Preparing search index...

                                                    Interface EnrollPushParams

                                                    Push notification enrollment parameters

                                                    -
                                                    interface EnrollPushParams {
                                                        factorType: "push";
                                                        mfaToken: string;
                                                    }

                                                    Hierarchy

                                                    • EnrollBaseParams
                                                      • EnrollPushParams
                                                    Index

                                                    Properties

                                                    interface EnrollPushParams {
                                                        factorType: "push";
                                                        mfaToken: string;
                                                    }

                                                    Hierarchy

                                                    • EnrollBaseParams
                                                      • EnrollPushParams
                                                    Index

                                                    Properties

                                                    Properties

                                                    factorType: "push"

                                                    The factor type for enrollment

                                                    mfaToken: string

                                                    MFA token from mfa_required error

                                                    diff --git a/docs/interfaces/EnrollSmsParams.html b/docs/interfaces/EnrollSmsParams.html index 3f513785..1ea1af47 100644 --- a/docs/interfaces/EnrollSmsParams.html +++ b/docs/interfaces/EnrollSmsParams.html @@ -1,5 +1,5 @@ EnrollSmsParams | @auth0/auth0-react
                                                    @auth0/auth0-react
                                                      Preparing search index...

                                                      Interface EnrollSmsParams

                                                      SMS enrollment parameters

                                                      -
                                                      interface EnrollSmsParams {
                                                          factorType: "sms";
                                                          mfaToken: string;
                                                          phoneNumber: string;
                                                      }

                                                      Hierarchy

                                                      • EnrollBaseParams
                                                        • EnrollSmsParams
                                                      Index

                                                      Properties

                                                      interface EnrollSmsParams {
                                                          factorType: "sms";
                                                          mfaToken: string;
                                                          phoneNumber: string;
                                                      }

                                                      Hierarchy

                                                      • EnrollBaseParams
                                                        • EnrollSmsParams
                                                      Index

                                                      Properties

                                                      factorType: "sms"

                                                      The factor type for enrollment

                                                      diff --git a/docs/interfaces/EnrollVoiceParams.html b/docs/interfaces/EnrollVoiceParams.html index 63178221..c63a9c0d 100644 --- a/docs/interfaces/EnrollVoiceParams.html +++ b/docs/interfaces/EnrollVoiceParams.html @@ -1,5 +1,5 @@ EnrollVoiceParams | @auth0/auth0-react
                                                      @auth0/auth0-react
                                                        Preparing search index...

                                                        Interface EnrollVoiceParams

                                                        Voice enrollment parameters

                                                        -
                                                        interface EnrollVoiceParams {
                                                            factorType: "voice";
                                                            mfaToken: string;
                                                            phoneNumber: string;
                                                        }

                                                        Hierarchy

                                                        • EnrollBaseParams
                                                          • EnrollVoiceParams
                                                        Index

                                                        Properties

                                                        interface EnrollVoiceParams {
                                                            factorType: "voice";
                                                            mfaToken: string;
                                                            phoneNumber: string;
                                                        }

                                                        Hierarchy

                                                        • EnrollBaseParams
                                                          • EnrollVoiceParams
                                                        Index

                                                        Properties

                                                        factorType: "voice"

                                                        The factor type for enrollment

                                                        diff --git a/docs/interfaces/IdToken.html b/docs/interfaces/IdToken.html index 84bc3c5b..981520f7 100644 --- a/docs/interfaces/IdToken.html +++ b/docs/interfaces/IdToken.html @@ -1,4 +1,4 @@ -IdToken | @auth0/auth0-react
                                                        @auth0/auth0-react
                                                          Preparing search index...

                                                          Interface IdToken

                                                          interface IdToken {
                                                              __raw: string;
                                                              acr?: string;
                                                              act?: ActClaim;
                                                              address?: string;
                                                              amr?: string[];
                                                              at_hash?: string;
                                                              aud?: string;
                                                              auth_time?: string;
                                                              azp?: string;
                                                              birthdate?: string;
                                                              c_hash?: string;
                                                              cnf?: string;
                                                              email?: string;
                                                              email_verified?: boolean;
                                                              exp?: number;
                                                              family_name?: string;
                                                              gender?: string;
                                                              given_name?: string;
                                                              iat?: number;
                                                              iss?: string;
                                                              jti?: string;
                                                              locale?: string;
                                                              middle_name?: string;
                                                              name?: string;
                                                              nbf?: number;
                                                              nickname?: string;
                                                              nonce?: string;
                                                              org_id?: string;
                                                              org_name?: string;
                                                              phone_number?: string;
                                                              phone_number_verified?: boolean;
                                                              picture?: string;
                                                              preferred_username?: string;
                                                              profile?: string;
                                                              sid?: string;
                                                              sub_jwk?: string;
                                                              updated_at?: string;
                                                              website?: string;
                                                              zoneinfo?: string;
                                                              [key: string]: any;
                                                          }

                                                          Indexable

                                                          • [key: string]: any
                                                          Index

                                                          Properties

                                                          __raw +IdToken | @auth0/auth0-react
                                                          @auth0/auth0-react
                                                            Preparing search index...

                                                            Interface IdToken

                                                            interface IdToken {
                                                                __raw: string;
                                                                acr?: string;
                                                                act?: ActClaim;
                                                                address?: string;
                                                                amr?: string[];
                                                                at_hash?: string;
                                                                aud?: string;
                                                                auth_time?: string;
                                                                azp?: string;
                                                                birthdate?: string;
                                                                c_hash?: string;
                                                                cnf?: string;
                                                                email?: string;
                                                                email_verified?: boolean;
                                                                exp?: number;
                                                                family_name?: string;
                                                                gender?: string;
                                                                given_name?: string;
                                                                iat?: number;
                                                                iss?: string;
                                                                jti?: string;
                                                                locale?: string;
                                                                middle_name?: string;
                                                                name?: string;
                                                                nbf?: number;
                                                                nickname?: string;
                                                                nonce?: string;
                                                                org_id?: string;
                                                                org_name?: string;
                                                                phone_number?: string;
                                                                phone_number_verified?: boolean;
                                                                picture?: string;
                                                                preferred_username?: string;
                                                                profile?: string;
                                                                session_expiry?: number;
                                                                sid?: string;
                                                                sub_jwk?: string;
                                                                updated_at?: string;
                                                                website?: string;
                                                                zoneinfo?: string;
                                                                [key: string]: any;
                                                            }

                                                            Indexable

                                                            • [key: string]: any
                                                            Index

                                                            Properties

                                                            __raw: string
                                                            acr?: string
                                                            act?: ActClaim

                                                            The actor claim, present in ID tokens returned via token exchange responses. Identifies the acting party that has been delegated authority to act on behalf of the subject. Set via Auth0 Actions using the setActor command.

                                                            -
                                                            address?: string
                                                            amr?: string[]
                                                            at_hash?: string
                                                            aud?: string
                                                            auth_time?: string
                                                            azp?: string
                                                            birthdate?: string
                                                            c_hash?: string
                                                            cnf?: string
                                                            email?: string
                                                            email_verified?: boolean
                                                            exp?: number
                                                            family_name?: string
                                                            gender?: string
                                                            given_name?: string
                                                            iat?: number
                                                            iss?: string
                                                            jti?: string
                                                            locale?: string
                                                            middle_name?: string
                                                            name?: string
                                                            nbf?: number
                                                            nickname?: string
                                                            nonce?: string
                                                            org_id?: string
                                                            org_name?: string
                                                            phone_number?: string
                                                            phone_number_verified?: boolean
                                                            picture?: string
                                                            preferred_username?: string
                                                            profile?: string
                                                            sid?: string
                                                            sub_jwk?: string
                                                            updated_at?: string
                                                            website?: string
                                                            zoneinfo?: string
                                                            +
                                                            address?: string
                                                            amr?: string[]
                                                            at_hash?: string
                                                            aud?: string
                                                            auth_time?: string
                                                            azp?: string
                                                            birthdate?: string
                                                            c_hash?: string
                                                            cnf?: string
                                                            email?: string
                                                            email_verified?: boolean
                                                            exp?: number
                                                            family_name?: string
                                                            gender?: string
                                                            given_name?: string
                                                            iat?: number
                                                            iss?: string
                                                            jti?: string
                                                            locale?: string
                                                            middle_name?: string
                                                            name?: string
                                                            nbf?: number
                                                            nickname?: string
                                                            nonce?: string
                                                            org_id?: string
                                                            org_name?: string
                                                            phone_number?: string
                                                            phone_number_verified?: boolean
                                                            picture?: string
                                                            preferred_username?: string
                                                            profile?: string
                                                            session_expiry?: number

                                                            IPSIE session expiry ceiling (Unix timestamp in seconds). +When present, the SDK will not return tokens after this point in time.

                                                            +
                                                            sid?: string
                                                            sub_jwk?: string
                                                            updated_at?: string
                                                            website?: string
                                                            zoneinfo?: string
                                                            diff --git a/docs/interfaces/LogoutOptions.html b/docs/interfaces/LogoutOptions.html index 6b0ab239..35865f0b 100644 --- a/docs/interfaces/LogoutOptions.html +++ b/docs/interfaces/LogoutOptions.html @@ -1,4 +1,4 @@ -LogoutOptions | @auth0/auth0-react
                                                            @auth0/auth0-react
                                                              Preparing search index...

                                                              Interface LogoutOptions

                                                              interface LogoutOptions {
                                                                  clientId?: string | null;
                                                                  logoutParams?: {
                                                                      federated?: boolean;
                                                                      returnTo?: string;
                                                                      [key: string]: any;
                                                                  };
                                                                  openUrl?: false
                                                                  | ((url: string) => void | Promise<void>);
                                                              }

                                                              Hierarchy

                                                              • Omit<SPALogoutOptions, "onRedirect">
                                                                • LogoutOptions
                                                              Index

                                                              Properties

                                                              clientId? +LogoutOptions | @auth0/auth0-react
                                                              @auth0/auth0-react
                                                                Preparing search index...

                                                                Interface LogoutOptions

                                                                interface LogoutOptions {
                                                                    clientId?: string | null;
                                                                    logoutParams?: {
                                                                        federated?: boolean;
                                                                        returnTo?: string;
                                                                        [key: string]: any;
                                                                    };
                                                                    openUrl?: false
                                                                    | ((url: string) => void | Promise<void>);
                                                                }

                                                                Hierarchy

                                                                • Omit<SPALogoutOptions, "onRedirect">
                                                                  • LogoutOptions
                                                                Index

                                                                Properties

                                                                clientId?: string | null

                                                                The clientId of your application.

                                                                diff --git a/docs/interfaces/RedirectLoginOptions.html b/docs/interfaces/RedirectLoginOptions.html index e9a2c1af..8187b255 100644 --- a/docs/interfaces/RedirectLoginOptions.html +++ b/docs/interfaces/RedirectLoginOptions.html @@ -1,4 +1,4 @@ -RedirectLoginOptions | @auth0/auth0-react
                                                                @auth0/auth0-react
                                                                  Preparing search index...

                                                                  Interface RedirectLoginOptions<TAppState>

                                                                  interface RedirectLoginOptions<TAppState = AppState> {
                                                                      appState?: TAppState;
                                                                      authorizationParams?: AuthorizationParams;
                                                                      fragment?: string;
                                                                      openUrl?: (url: string) => void | Promise<void>;
                                                                  }

                                                                  Type Parameters

                                                                  Hierarchy

                                                                  • Omit<SPARedirectLoginOptions<TAppState>, "onRedirect">
                                                                    • RedirectLoginOptions
                                                                  Index

                                                                  Properties

                                                                  appState? +RedirectLoginOptions | @auth0/auth0-react
                                                                  @auth0/auth0-react
                                                                    Preparing search index...

                                                                    Interface RedirectLoginOptions<TAppState>

                                                                    interface RedirectLoginOptions<TAppState = AppState> {
                                                                        appState?: TAppState;
                                                                        authorizationParams?: AuthorizationParams;
                                                                        fragment?: string;
                                                                        openUrl?: (url: string) => void | Promise<void>;
                                                                    }

                                                                    Type Parameters

                                                                    Hierarchy

                                                                    • Omit<SPARedirectLoginOptions<TAppState>, "onRedirect">
                                                                      • RedirectLoginOptions
                                                                    Index

                                                                    Properties

                                                                    appState? authorizationParams? fragment? openUrl? diff --git a/docs/interfaces/WithAuth0Props.html b/docs/interfaces/WithAuth0Props.html index 971e691f..2facd04f 100644 --- a/docs/interfaces/WithAuth0Props.html +++ b/docs/interfaces/WithAuth0Props.html @@ -1,3 +1,3 @@ WithAuth0Props | @auth0/auth0-react
                                                                    @auth0/auth0-react
                                                                      Preparing search index...

                                                                      Interface WithAuth0Props

                                                                      Components wrapped in withAuth0 will have an additional auth0 prop

                                                                      -
                                                                      interface WithAuth0Props {
                                                                          auth0: Auth0ContextInterface;
                                                                      }
                                                                      Index

                                                                      Properties

                                                                      Properties

                                                                      +
                                                                      interface WithAuth0Props {
                                                                          auth0: Auth0ContextInterface;
                                                                      }
                                                                      Index

                                                                      Properties

                                                                      Properties

                                                                      diff --git a/docs/interfaces/WithAuthenticationRequiredOptions.html b/docs/interfaces/WithAuthenticationRequiredOptions.html index 00846a59..06bede08 100644 --- a/docs/interfaces/WithAuthenticationRequiredOptions.html +++ b/docs/interfaces/WithAuthenticationRequiredOptions.html @@ -1,5 +1,5 @@ WithAuthenticationRequiredOptions | @auth0/auth0-react
                                                                      @auth0/auth0-react
                                                                        Preparing search index...

                                                                        Interface WithAuthenticationRequiredOptions

                                                                        Options for the withAuthenticationRequired Higher Order Component

                                                                        -
                                                                        interface WithAuthenticationRequiredOptions {
                                                                            context?: Context<Auth0ContextInterface<User>>;
                                                                            loginOptions?: RedirectLoginOptions<AppState>;
                                                                            onBeforeAuthentication?: () => Promise<void>;
                                                                            onRedirecting?: () => Element;
                                                                            returnTo?: string | (() => string);
                                                                        }
                                                                        Index

                                                                        Properties

                                                                        interface WithAuthenticationRequiredOptions {
                                                                            context?: Context<Auth0ContextInterface<User>>;
                                                                            loginOptions?: RedirectLoginOptions<AppState>;
                                                                            onBeforeAuthentication?: () => Promise<void>;
                                                                            onRedirecting?: () => Element;
                                                                            returnTo?: string | (() => string);
                                                                        }
                                                                        Index

                                                                        Properties

                                                                        context?: Context<Auth0ContextInterface<User>>

                                                                        The context to be used when calling useAuth0, this should only be provided if you are using multiple Auth0Providers within your application and you wish to tie a specific component to a Auth0Provider other than the Auth0Provider associated with the default Auth0Context.

                                                                        -
                                                                        withAuthenticationRequired(Profile, {
                                                                        loginOptions: {
                                                                        appState: {
                                                                        customProp: 'foo'
                                                                        }
                                                                        }
                                                                        }) +
                                                                        withAuthenticationRequired(Profile, {
                                                                        loginOptions: {
                                                                        appState: {
                                                                        customProp: 'foo'
                                                                        }
                                                                        }
                                                                        })

                                                                        Pass additional login options, like extra appState to the login page. This will be merged with the returnTo option used by the onRedirectCallback handler.

                                                                        -
                                                                        onBeforeAuthentication?: () => Promise<void>
                                                                        withAuthenticationRequired(Profile, {
                                                                        onBeforeAuthentication: () => { analyticsLibrary.track('login_triggered'); }
                                                                        }) +
                                                                        onBeforeAuthentication?: () => Promise<void>
                                                                        withAuthenticationRequired(Profile, {
                                                                        onBeforeAuthentication: () => { analyticsLibrary.track('login_triggered'); }
                                                                        })

                                                                        Allows executing logic before the user is redirected to the login page.

                                                                        -
                                                                        onRedirecting?: () => Element
                                                                        withAuthenticationRequired(Profile, {
                                                                        onRedirecting: () => <div>Redirecting you to the login...</div>
                                                                        }) +
                                                                        onRedirecting?: () => Element
                                                                        withAuthenticationRequired(Profile, {
                                                                        onRedirecting: () => <div>Redirecting you to the login...</div>
                                                                        })

                                                                        Render a message to show that the user is being redirected to the login.

                                                                        -
                                                                        returnTo?: string | (() => string)
                                                                        withAuthenticationRequired(Profile, {
                                                                        returnTo: '/profile'
                                                                        }) +
                                                                        returnTo?: string | (() => string)
                                                                        withAuthenticationRequired(Profile, {
                                                                        returnTo: '/profile'
                                                                        })

                                                                        or

                                                                        @@ -28,4 +28,4 @@

                                                                        Add a path for the onRedirectCallback handler to return the user to after login.

                                                                        -
                                                                        +
                                                                        diff --git a/docs/types/AppState.html b/docs/types/AppState.html index 12c43bd9..cfd9f5ed 100644 --- a/docs/types/AppState.html +++ b/docs/types/AppState.html @@ -1,6 +1,6 @@ AppState | @auth0/auth0-react
                                                                        @auth0/auth0-react
                                                                          Preparing search index...

                                                                          Type Alias AppState

                                                                          The state of the application before the user was redirected to the login page and any account that the user may have connected to.

                                                                          -
                                                                          type AppState = {
                                                                              connectedAccount?: ConnectedAccount;
                                                                              response_type?: ResponseType;
                                                                              returnTo?: string;
                                                                              [key: string]: any;
                                                                          }

                                                                          Indexable

                                                                          • [key: string]: any
                                                                          Index

                                                                          Properties

                                                                          type AppState = {
                                                                              connectedAccount?: ConnectedAccount;
                                                                              response_type?: ResponseType;
                                                                              returnTo?: string;
                                                                              [key: string]: any;
                                                                          }

                                                                          Indexable

                                                                          • [key: string]: any
                                                                          Index

                                                                          Properties

                                                                          connectedAccount?: ConnectedAccount
                                                                          response_type?: ResponseType
                                                                          returnTo?: string
                                                                          +

                                                                          Properties

                                                                          connectedAccount?: ConnectedAccount
                                                                          response_type?: ResponseType
                                                                          returnTo?: string
                                                                          diff --git a/docs/types/Auth0ProviderOptions.html b/docs/types/Auth0ProviderOptions.html index b0cd9a4f..ba5f899f 100644 --- a/docs/types/Auth0ProviderOptions.html +++ b/docs/types/Auth0ProviderOptions.html @@ -1,4 +1,4 @@ Auth0ProviderOptions | @auth0/auth0-react
                                                                          @auth0/auth0-react
                                                                            Preparing search index...

                                                                            Type Alias Auth0ProviderOptions<TUser>

                                                                            The main configuration to instantiate the Auth0Provider.

                                                                            Either provide domain and clientId (Auth0ProviderWithConfigOptions) or a pre-configured client instance (Auth0ProviderWithClientOptions).

                                                                            -

                                                                            Type Parameters

                                                                            +

                                                                            Type Parameters

                                                                            diff --git a/docs/types/Auth0ProviderWithClientOptions.html b/docs/types/Auth0ProviderWithClientOptions.html index 251eac69..e55d9376 100644 --- a/docs/types/Auth0ProviderWithClientOptions.html +++ b/docs/types/Auth0ProviderWithClientOptions.html @@ -1,2 +1,2 @@ Auth0ProviderWithClientOptions | @auth0/auth0-react
                                                                            @auth0/auth0-react
                                                                              Preparing search index...

                                                                              Type Alias Auth0ProviderWithClientOptions<TUser>

                                                                              Auth0ProviderWithClientOptions: Auth0ProviderBaseOptions<TUser> & {
                                                                                  client: Auth0Client;
                                                                              }

                                                                              Options for Auth0Provider when supplying a pre-configured Auth0Client instance.

                                                                              -

                                                                              Type Parameters

                                                                              +

                                                                              Type Parameters

                                                                              diff --git a/docs/types/Auth0ProviderWithConfigOptions.html b/docs/types/Auth0ProviderWithConfigOptions.html index 2089c39f..f4a85545 100644 --- a/docs/types/Auth0ProviderWithConfigOptions.html +++ b/docs/types/Auth0ProviderWithConfigOptions.html @@ -1,3 +1,3 @@ Auth0ProviderWithConfigOptions | @auth0/auth0-react
                                                                              @auth0/auth0-react
                                                                                Preparing search index...

                                                                                Type Alias Auth0ProviderWithConfigOptions<TUser>

                                                                                Auth0ProviderWithConfigOptions: Auth0ProviderBaseOptions<TUser> & Auth0ClientOptions & {
                                                                                    client?: never;
                                                                                }

                                                                                Options for Auth0Provider when configuring Auth0 via domain and clientId. Use this type when building wrapper components around Auth0Provider.

                                                                                -

                                                                                Type Parameters

                                                                                +

                                                                                Type Parameters

                                                                                diff --git a/docs/types/ConnectedAccount.html b/docs/types/ConnectedAccount.html index 0d7d400a..ae44e13b 100644 --- a/docs/types/ConnectedAccount.html +++ b/docs/types/ConnectedAccount.html @@ -1,2 +1,2 @@ ConnectedAccount | @auth0/auth0-react
                                                                                @auth0/auth0-react
                                                                                  Preparing search index...

                                                                                  Type Alias ConnectedAccount

                                                                                  ConnectedAccount: Omit<
                                                                                      ConnectAccountRedirectResult,
                                                                                      "appState"
                                                                                      | "response_type",
                                                                                  >

                                                                                  The account that has been connected during the connect flow.

                                                                                  -
                                                                                  +
                                                                                  diff --git a/docs/variables/Auth0Context.html b/docs/variables/Auth0Context.html index 064d475c..cdadf998 100644 --- a/docs/variables/Auth0Context.html +++ b/docs/variables/Auth0Context.html @@ -1,2 +1,2 @@ Auth0Context | @auth0/auth0-react
                                                                                  @auth0/auth0-react
                                                                                    Preparing search index...

                                                                                    Variable Auth0ContextConst

                                                                                    Auth0Context: Context<Auth0ContextInterface<User>> = ...

                                                                                    The Auth0 Context

                                                                                    -
                                                                                    +
                                                                                    diff --git a/package.json b/package.json index 927822ba..539b551f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "author": "Auth0", "name": "@auth0/auth0-react", - "version": "2.19.0", + "version": "2.20.0", "description": "Auth0 SDK for React Single Page Applications (SPA)", "keywords": [ "auth0",