diff --git a/.version b/.version index 79515b3..fa49670 100644 --- a/.version +++ b/.version @@ -1 +1 @@ -v2.3.3 \ No newline at end of file +v2.4.0 \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 04a1027..7e77bd6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,28 @@ # Change Log +## [v2.4.0](https://github.com/auth0/auth0-vue/tree/v2.4.0) (2024-12-02) +[Full Changelog](https://github.com/auth0/auth0-vue/compare/v2.3.3...v2.4.0) + +**Added** +- added RL workflow [\#428](https://github.com/auth0/auth0-vue/pull/428) ([tusharpandey13](https://github.com/tusharpandey13)) + +**Changed** +- ci: changed pull_request_target to pull_request and removed the authorize step [\#420](https://github.com/auth0/auth0-vue/pull/420) ([desusai7](https://github.com/desusai7)) +- Update codeowner file with new GitHub team name [\#416](https://github.com/auth0/auth0-vue/pull/416) ([stevenwong-okta](https://github.com/stevenwong-okta)) +- Bump vue from 3.3.12 to 3.3.13 [\#348](https://github.com/auth0/auth0-vue/pull/348) ([dependabot[bot]](https://github.com/apps/dependabot)) +- Bump vue from 3.3.11 to 3.3.12 [\#347](https://github.com/auth0/auth0-vue/pull/347) ([dependabot[bot]](https://github.com/apps/dependabot)) +- Bump eslint from 8.55.0 to 8.56.0 [\#346](https://github.com/auth0/auth0-vue/pull/346) ([dependabot[bot]](https://github.com/apps/dependabot)) +- Bump browserstack-cypress-cli from 1.27.0 to 1.28.0 [\#342](https://github.com/auth0/auth0-vue/pull/342) ([dependabot[bot]](https://github.com/apps/dependabot)) +- Bump github/codeql-action from 2 to 3 [\#343](https://github.com/auth0/auth0-vue/pull/343) ([dependabot[bot]](https://github.com/apps/dependabot)) +- Bump rollup-plugin-visualizer from 5.10.0 to 5.11.0 [\#338](https://github.com/auth0/auth0-vue/pull/338) ([dependabot[bot]](https://github.com/apps/dependabot)) + +**Fixed** +- chore: use declare module 'vue' to fix type issues [\#419](https://github.com/auth0/auth0-vue/pull/419) ([andreasgangso](https://github.com/andreasgangso)) +- Update automated release process to latest version [\#344](https://github.com/auth0/auth0-vue/pull/344) ([frederikprijck](https://github.com/frederikprijck)) +- Use outputs for capturing release-notes [\#341](https://github.com/auth0/auth0-vue/pull/341) ([frederikprijck](https://github.com/frederikprijck)) +- Ensure tag-exists action works as intended [\#340](https://github.com/auth0/auth0-vue/pull/340) ([frederikprijck](https://github.com/frederikprijck)) +- Align release process by supporting release-directory [\#339](https://github.com/auth0/auth0-vue/pull/339) ([frederikprijck](https://github.com/frederikprijck)) + ## [v2.3.3](https://github.com/auth0/auth0-vue/tree/v2.3.3) (2023-12-11) [Full Changelog](https://github.com/auth0/auth0-vue/compare/v2.3.2...v2.3.3) diff --git a/docs/assets/navigation.js b/docs/assets/navigation.js index ce83bf6..b0eb21d 100644 --- a/docs/assets/navigation.js +++ b/docs/assets/navigation.js @@ -1 +1 @@ -window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAE6WVW0/CMBiG/8uuUWAKKndkIThFIAIaYwypW9kaSrv0YETjf7cbgR26U8Ztv2fP+3U9vf8aAn4LY2DY5AnuKNtbwPGh0TICIHw17GDAOeTtVPnSFzusmC0irjHomretA6d4wd0LxC+UEzICsPHXOiVMqAPwQlAGPFiQoiHNklYcMl0ejjbzDYNgIYBINIyIojbAUdpjMa02e/2kQAq/M8fSQ2QWCEQJz1dpWKX0RUILI0hEsfCE1JdVNpklq9RjCZhbZU1CVULK0A8IyTlgYFfszHCattb6j6FY0i0kC4TVlPG+bCIF7HnBr0j4cxrIoE5yFm4WbWeOaCLIzjmatbVu1GO+91BrJp5Qj8rSjZsiyvbXAVwxXG2LoWZdR+tkUbJBXlmYjp0Rpzovv4Y0qlnYM3QRg46ozMsDy9Yn2n7hUxGSsVHsAyVLFTOWzt1Nt2fWaj7SgE8Mc/1hobl7uFred9b29GFkLe3ZdP04eotTvgBDoV5dXzqWzrwyE1JwvEBj1UYSJ/qZ7VMxLehfJwQOg+oVi273PEWiXEtS2EsGKZFJXtzOsaZ9/vEPTqagcNMIAAA=" \ No newline at end of file +window.navigationData = "data:application/octet-stream;base64,H4sIAAAAAAAAE6WVXU/CMBSG/0uvwQEKKneEEJwiEAGNMYbU7cAaSru0ZwY0/nezEWDfW8bt3mfPe7Z23ccvQdgh6RJTPMNWqn2fWg6QGnEpOqRLLE61Bm1E4isHt5zUyIYJm3SbrbvagSNdgtquM12HHYISlJO/2qlhJC3KZygVXUNGSwKp1rTQoJJy/2o1X891Z0gxNDATCGpFLdDGMYyqW+1OWOCh05hyb83ExEUmhU5XJbBC6asHfc5AYLbwhJSXFQ4ZJ4vUQ48qu8gahoqEUrEf6pNTqug22xnjEtpS6z8EnMsNiBnjIJDv8x4kg72s+I2hM5Wu55ZpjsPVqs3YJxoqMlM+zdJaO5gx3XvIqolHci293I0bIfL21wFcKF5sO0PVpg7WqS/Fiq3zypLYBXUjWXAMJahqZS9gMwUWFvalgXnrE2w//1fhk2cj7l3QRiSMWRr3t812q9TwgYZ+cUj1+0F1d28xf2gszfHjoD83J+Pl0+D93PJNFfP12kjBop3XrZCUHg/Qs2rlCSt4mcYpjAo6NyGBpYAiBKd7miIUl5JkzhJDcmSezh7nmCVu//wHTqagcNMIAAA=" \ No newline at end of file diff --git a/docs/assets/search.js b/docs/assets/search.js index cb213d8..0d3eb92 100644 --- a/docs/assets/search.js +++ b/docs/assets/search.js @@ -1 +1 @@ -window.searchData = "data:application/octet-stream;base64,H4sIAAAAAAAAE7VZ227jNhD9F/nV62go39+CYNGmDXaDJt2iMAyDKzMxa1kSdMk2MPzvS1KWNJRJWa7Tp0DWOXM7w6HI7J0k+pE688Xe2fJw7czHw74T0h1z5o6fMJqx2zzbuE7fyZNA/PaSh37GozC9QW8Hm2wXCIgf0DRlwprjHPoGg3lqtVa+ajXlkcrU7Z/Pv7qr+y+/fb57vv/6ZfX7578rq2804fR7wNIbA6rVARmNaw9x/JSJDCuzPMxY8kJ9aff4rtUYuKROPaPJK8vO2upVOGSy78Q0YWGGg7LELEv4GOSvPPwaq8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8Wctljv3kaOAFzXYvYQNmY6Exch1YFfgYI+VtMRIpDH/Fy126JUX+nWxQPTSv5wjjJ4FT2L1YVhrxSjKXl5UqOXh2TceyaxQiBpy5SEcetj3Lqeev1zisGHoB/oPGkYQDokNRgwYRTikNhg1YD7CoW+D+QZsgnA4scEmBixAOAxssMCATREOpzbY1IBdIxxe22DXBmyGcDizwWYGbI5wOLfB5mZ7VbeJ1QfSM0I7YbfC9IKonhOrG8S0g6i2E6shxHSEqM4TqyfENIWo5hOrLcT0haj+E6szxLSGKAuI1RxiukOUC8TqDzENIsoIYrWImB5RZQS1ekRNj6gyglo9or31oheMfcWYHlFlBPUxDS4n84mJND2iyghq9YiaHlFlBA2sMU2P6NSNND2iyghqdZOaHlFlBLW6SU2PqDKCWt2kpke+5+ySX3uk989XXkge39X7aBi2L+EdWh02Vxo02/0O0QAtdnuM6FT93HebqvpNpdAvFcCdAe7czSnri6qO6Hc830VTB8OVSP/h+m282vI3IzXIPBQh17cjWfP26QKAsoOhAK8Vjw63Jh0Z1D0bRbYIoASUQAairOvjCWBOAfP6PaYt9TUI4CpAf6eVzXdaRyaATFzZ67MXq29TO67XUb13mcd1T4DsiYN/uHUAesGwEde0aVau79o6JijUVeeaS6a/16T6Xivbb0iQHswKcfXaDPNDyE1ef/aBOHMQx7XW6o/85uAVtR/5IAyYHeJa5iLWOqLDlRFgg2VHXOtOlMy8YgN8MADENQGiTJobwo4JqncVr+9b7L0Dg0Ncg9PSi/a6BkQA2wVx7RfNhzOYWFAvddVb02zLFG5yrm43arV8WxAw/tSv93ffJUVdfw9NDxge1+w0/yHoSKD5rt5X5fFeAbZH1+5YX6kCCuRYSUuMcpHzRKQcLcLlfv8TrNV8i2EaAAA="; \ No newline at end of file diff --git a/docs/functions/authGuard.html b/docs/functions/authGuard.html index 9ced807..f64b638 100644 --- a/docs/functions/authGuard.html +++ b/docs/functions/authGuard.html @@ -1 +1 @@ -authGuard | @auth0/auth0-vue

Function authGuard

  • Parameters

    • to: RouteLocation

    Returns Promise<boolean>

\ No newline at end of file +authGuard | @auth0/auth0-vue

Function authGuard

  • Parameters

    • to: RouteLocation

    Returns Promise<boolean>

\ No newline at end of file diff --git a/docs/functions/createAuth0.html b/docs/functions/createAuth0.html index ffeb05f..1fdc01d 100644 --- a/docs/functions/createAuth0.html +++ b/docs/functions/createAuth0.html @@ -2,4 +2,4 @@

Parameters

Returns Auth0Plugin

An instance of Auth0Plugin

-
\ No newline at end of file +
\ No newline at end of file diff --git a/docs/functions/createAuthGuard.html b/docs/functions/createAuthGuard.html index 121c0a4..34cc09d 100644 --- a/docs/functions/createAuthGuard.html +++ b/docs/functions/createAuthGuard.html @@ -1,3 +1,3 @@ createAuthGuard | @auth0/auth0-vue

Function createAuthGuard

  • Parameters

    • Optional app: App<any>

      The vue application

      -

    Returns ((to) => Promise<boolean>)

      • (to): Promise<boolean>
      • Parameters

        • to: RouteLocation

        Returns Promise<boolean>

  • Parameters

    • Optional options: AuthGuardOptions

      The options used when creating an AuthGuard.

      -

    Returns ((to) => Promise<boolean>)

      • (to): Promise<boolean>
      • Parameters

        • to: RouteLocation

        Returns Promise<boolean>

\ No newline at end of file +

Returns ((to) => Promise<boolean>)

  • Parameters

    Returns ((to) => Promise<boolean>)

  • \ No newline at end of file diff --git a/docs/functions/useAuth0.html b/docs/functions/useAuth0.html index a64d691..6f90501 100644 --- a/docs/functions/useAuth0.html +++ b/docs/functions/useAuth0.html @@ -1,3 +1,3 @@ useAuth0 | @auth0/auth0-vue

    Function useAuth0

    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/interfaces/AppState.html b/docs/interfaces/AppState.html index 7a7fa64..85a3cda 100644 --- a/docs/interfaces/AppState.html +++ b/docs/interfaces/AppState.html @@ -1,5 +1,5 @@ AppState | @auth0/auth0-vue

    Interface AppState

    interface AppState {
        target?: string;
        [key: string]: any;
    }

    Indexable

    [key: string]: any

    Any custom parameter to be stored in appState

    -

    Properties

    Properties

    Properties

    target?: string

    Target path the app gets routed to after handling the callback from Auth0 (defaults to '/')

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/interfaces/Auth0PluginOptions.html b/docs/interfaces/Auth0PluginOptions.html index d19cfe9..da80775 100644 --- a/docs/interfaces/Auth0PluginOptions.html +++ b/docs/interfaces/Auth0PluginOptions.html @@ -1,9 +1,9 @@ Auth0PluginOptions | @auth0/auth0-vue

    Interface Auth0PluginOptions

    Additional Configuration for the Auth0 Vue plugin

    -
    interface Auth0PluginOptions {
        errorPath?: string;
        skipRedirectCallback?: boolean;
    }

    Properties

    interface Auth0PluginOptions {
        errorPath?: string;
        skipRedirectCallback?: boolean;
    }

    Properties

    errorPath?: string

    Path in your application to redirect to when the Authorization server returns an error. Defaults to /

    -
    skipRedirectCallback?: boolean

    By default, if the page URL has code and state parameters, the SDK will assume it should handle it and attempt to exchange the code for a token.

    +
    skipRedirectCallback?: boolean

    By default, if the page URL has code and state parameters, the SDK will assume it should handle it and attempt to exchange the code for a token.

    In situations where you are combining our SDK with other libraries that use the same code and state parameters, you will need to ensure our SDK can differentiate between requests it should and should not handle.

    In these cases you can instruct the client to ignore certain URLs by setting skipRedirectCallback.

    @@ -11,4 +11,4 @@

    Note: In the above example, /other-callback is an existing route, with a code (or error in case when something went wrong) and state, that will be handled by any other SDK.

    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/docs/interfaces/Auth0VueClient.html b/docs/interfaces/Auth0VueClient.html index ef4179d..ea993e6 100644 --- a/docs/interfaces/Auth0VueClient.html +++ b/docs/interfaces/Auth0VueClient.html @@ -1,4 +1,4 @@ -Auth0VueClient | @auth0/auth0-vue

    Interface Auth0VueClient

    interface Auth0VueClient {
        error: Ref<any>;
        idTokenClaims: Ref<undefined | IdToken>;
        isAuthenticated: Ref<boolean>;
        isLoading: Ref<boolean>;
        user: Ref<undefined | User>;
        checkSession(options?): Promise<void>;
        getAccessTokenSilently(options): Promise<GetTokenSilentlyVerboseResponse>;
        getAccessTokenSilently(options?): Promise<string>;
        getAccessTokenWithPopup(options?, config?): Promise<undefined | string>;
        handleRedirectCallback(url?): Promise<RedirectLoginResult<AppState>>;
        loginWithPopup(options?, config?): Promise<void>;
        loginWithRedirect(options?): Promise<void>;
        logout(options?): Promise<void>;
    }

    Properties

    error +Auth0VueClient | @auth0/auth0-vue

    Interface Auth0VueClient

    interface Auth0VueClient {
        error: Ref<any>;
        idTokenClaims: Ref<undefined | IdToken>;
        isAuthenticated: Ref<boolean>;
        isLoading: Ref<boolean>;
        user: Ref<undefined | User>;
        checkSession(options?): Promise<void>;
        getAccessTokenSilently(options): Promise<GetTokenSilentlyVerboseResponse>;
        getAccessTokenSilently(options?): Promise<string>;
        getAccessTokenWithPopup(options?, config?): Promise<undefined | string>;
        handleRedirectCallback(url?): Promise<RedirectLoginResult<AppState>>;
        loginWithPopup(options?, config?): Promise<void>;
        loginWithRedirect(options?): Promise<void>;
        logout(options?): Promise<void>;
    }

    Properties

    error: Ref<any>

    Contains an error that occured in the SDK

    -
    idTokenClaims: Ref<undefined | IdToken>

    Contains all claims from the id_token if available.

    -
    isAuthenticated: Ref<boolean>

    The authentication state, true if the user is authenticated, false if not.

    -
    isLoading: Ref<boolean>

    The loading state of the SDK, true if the SDK is still processing the PKCE flow, false if the SDK has finished processing the PKCE flow.

    -
    user: Ref<undefined | User>

    Contains the information of the user if available.

    -

    Methods

    idTokenClaims: Ref<undefined | IdToken>

    Contains all claims from the id_token if available.

    +
    isAuthenticated: Ref<boolean>

    The authentication state, true if the user is authenticated, false if not.

    +
    isLoading: Ref<boolean>

    The loading state of the SDK, true if the SDK is still processing the PKCE flow, false if the SDK has finished processing the PKCE flow.

    +
    user: Ref<undefined | User>

    Contains the information of the user if available.

    +

    Methods

    • await checkSession();
       

      Check if the user is logged in using getTokenSilently. The difference with getTokenSilently is that this doesn't return a token, but it will @@ -23,21 +23,21 @@

      This method also heeds the auth0.{clientId}.is.authenticated cookie, as an optimization to prevent calling Auth0 unnecessarily. If the cookie is not present because there was no previous login (or it has expired) then tokens will not be refreshed.

      -

      Parameters

      Returns Promise<void>

    • const token = await getTokenWithPopup(options);
       

      Opens a popup with the /authorize URL using the parameters 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.

      -

      Parameters

      Returns Promise<undefined | string>

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

      Note: The Auth0-Vue SDK handles this for you, unless you set skipRedirectCallback to true. In that case, be sure to explicitly call handleRedirectCallback yourself.

      -

      Parameters

      • Optional url: string

      Returns Promise<RedirectLoginResult<AppState>>

    • try {
      await loginWithPopup(options);
      } catch(e) {
      if (e instanceof PopupCancelledError) {
      // Popup was closed before login completed
      }
      } +

      Parameters

      • Optional url: string

      Returns Promise<RedirectLoginResult<AppState>>

    • try {
      await loginWithPopup(options);
      } catch(e) {
      if (e instanceof PopupCancelledError) {
      // Popup was closed before login completed
      }
      }

      Opens a popup with the /authorize URL using the parameters provided as arguments. Random and secure state and nonce @@ -46,12 +46,12 @@

      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.

      -

      Parameters

      Returns 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.

      -

      Parameters

      Returns Promise<void>

    • logout();
       

      Clears the application session and performs a redirect to /v2/logout, using the parameters provided as arguments, to clear the Auth0 session.

      @@ -61,4 +61,4 @@ It is invalid to set both the federated and localOnly options to true, and an error will be thrown if you do. Read more about how Logout works at Auth0.

      -

      Parameters

      Returns Promise<void>

    \ No newline at end of file +

    Parameters

    Returns Promise<void>

    \ No newline at end of file diff --git a/docs/interfaces/Auth0VueClientOptions.html b/docs/interfaces/Auth0VueClientOptions.html index 4766c82..6a38378 100644 --- a/docs/interfaces/Auth0VueClientOptions.html +++ b/docs/interfaces/Auth0VueClientOptions.html @@ -1,5 +1,5 @@ Auth0VueClientOptions | @auth0/auth0-vue

    Interface Auth0VueClientOptions

    Configuration for the Auth0 Vue Client

    -
    interface Auth0VueClientOptions {
        auth0Client?: {
            env?: {
                [key: string]: string;
            };
            name: string;
            version: string;
        };
        authorizationParams?: AuthorizationParams;
        authorizeTimeoutInSeconds?: number;
        cache?: ICache;
        cacheLocation?: CacheLocation;
        clientId: string;
        cookieDomain?: string;
        domain: string;
        httpTimeoutInSeconds?: number;
        issuer?: string;
        leeway?: number;
        legacySameSiteCookie?: boolean;
        nowProvider?: (() => number | Promise<number>);
        sessionCheckExpiryDays?: number;
        useCookiesForTransactions?: boolean;
        useFormData?: boolean;
        useRefreshTokens?: boolean;
        useRefreshTokensFallback?: boolean;
        workerUrl?: string;
    }

    Hierarchy

    • Auth0ClientOptions
      • Auth0VueClientOptions

    Properties

    interface Auth0VueClientOptions {
        auth0Client?: {
            env?: {
                [key: string]: string;
            };
            name: string;
            version: string;
        };
        authorizationParams?: AuthorizationParams;
        authorizeTimeoutInSeconds?: number;
        cache?: ICache;
        cacheLocation?: CacheLocation;
        clientId: string;
        cookieDomain?: string;
        domain: string;
        httpTimeoutInSeconds?: number;
        issuer?: string;
        leeway?: number;
        legacySameSiteCookie?: boolean;
        nowProvider?: (() => number | Promise<number>);
        sessionCheckExpiryDays?: number;
        useCookiesForTransactions?: boolean;
        useFormData?: boolean;
        useRefreshTokens?: boolean;
        useRefreshTokensFallback?: boolean;
        workerUrl?: string;
    }

    Hierarchy

    • Auth0ClientOptions
      • Auth0VueClientOptions

    Properties

    auth0Client? authorizationParams? authorizeTimeoutInSeconds? cache? diff --git a/docs/interfaces/AuthGuardOptions.html b/docs/interfaces/AuthGuardOptions.html index e3193da..ccb92eb 100644 --- a/docs/interfaces/AuthGuardOptions.html +++ b/docs/interfaces/AuthGuardOptions.html @@ -1,6 +1,6 @@ AuthGuardOptions | @auth0/auth0-vue

    Interface AuthGuardOptions

    The options used when creating an AuthGuard.

    -
    interface AuthGuardOptions {
        app?: App<any>;
        redirectLoginOptions?: RedirectLoginOptions<any>;
    }

    Properties

    interface AuthGuardOptions {
        app?: App<any>;
        redirectLoginOptions?: RedirectLoginOptions<any>;
    }

    Properties

    app?: App<any>

    The vue application

    -
    redirectLoginOptions?: RedirectLoginOptions<any>

    Route specific options to use when being redirected to Auth0

    -
    \ No newline at end of file +
    redirectLoginOptions?: RedirectLoginOptions<any>

    Route specific options to use when being redirected to Auth0

    +
    \ No newline at end of file diff --git a/docs/interfaces/LogoutOptions.html b/docs/interfaces/LogoutOptions.html index c839fd7..ffcbc5f 100644 --- a/docs/interfaces/LogoutOptions.html +++ b/docs/interfaces/LogoutOptions.html @@ -1,4 +1,4 @@ -LogoutOptions | @auth0/auth0-vue

    Interface LogoutOptions

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

    Hierarchy

    • Omit<SPALogoutOptions, "onRedirect">
      • LogoutOptions

    Properties

    clientId? +LogoutOptions | @auth0/auth0-vue

    Interface LogoutOptions

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

    Hierarchy

    • Omit<SPALogoutOptions, "onRedirect">
      • LogoutOptions

    Properties

    clientId?: null | string

    The clientId of your application.

    diff --git a/docs/interfaces/RedirectLoginOptions.html b/docs/interfaces/RedirectLoginOptions.html index e1e3fce..6b63608 100644 --- a/docs/interfaces/RedirectLoginOptions.html +++ b/docs/interfaces/RedirectLoginOptions.html @@ -1,4 +1,4 @@ -RedirectLoginOptions | @auth0/auth0-vue

    Interface RedirectLoginOptions<TAppState>

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

    Type Parameters

    Hierarchy

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

    Properties

    appState? +RedirectLoginOptions | @auth0/auth0-vue

    Interface RedirectLoginOptions<TAppState>

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

    Type Parameters

    Hierarchy

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

    Properties

    appState? authorizationParams? fragment? openUrl? diff --git a/docs/variables/AUTH0_INJECTION_KEY.html b/docs/variables/AUTH0_INJECTION_KEY.html index 62b5f1c..c6356e2 100644 --- a/docs/variables/AUTH0_INJECTION_KEY.html +++ b/docs/variables/AUTH0_INJECTION_KEY.html @@ -1,4 +1,4 @@ AUTH0_INJECTION_KEY | @auth0/auth0-vue

    Variable AUTH0_INJECTION_KEYConst

    AUTH0_INJECTION_KEY: InjectionKey<Auth0VueClient> = ...

    Injection token used to provide the Auth0VueClient instance. Can be used to pass to inject()

    inject(AUTH0_INJECTION_KEY)
     
    -
    \ No newline at end of file +
    \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index b219eb0..f0d3665 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@auth0/auth0-vue", - "version": "2.3.3", + "version": "2.4.0", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "@auth0/auth0-vue", - "version": "2.3.3", + "version": "2.4.0", "license": "MIT", "dependencies": { "@auth0/auth0-spa-js": "^2.1.3", diff --git a/package.json b/package.json index 099f85c..ef6886b 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,7 @@ "name": "@auth0/auth0-vue", "description": "Auth0 SDK for Vue Applications using Authorization Code Grant Flow with PKCE", "license": "MIT", - "version": "2.3.3", + "version": "2.4.0", "main": "dist/lib/auth0-vue.cjs.js", "types": "dist/typings/index.d.ts", "module": "dist/auth0-vue.production.esm.js",