From abb12781692a3f2ccdff806e5518ab2b61307d64 Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Mon, 22 May 2023 13:29:56 +0200 Subject: [PATCH] Release v2.0.5 (#1100) --- CHANGELOG.md | 16 ++++ docs/classes/Auth0Client.html | 26 +++---- docs/classes/AuthenticationError.html | 14 ++-- docs/classes/CacheKey.html | 20 ++--- docs/classes/GenericError.html | 10 +-- docs/classes/InMemoryCache.html | 4 +- docs/classes/LocalStorageCache.html | 10 +-- docs/classes/MfaRequiredError.html | 12 +-- docs/classes/MissingRefreshTokenError.html | 14 ++-- docs/classes/PopupCancelledError.html | 12 +-- docs/classes/PopupTimeoutError.html | 12 +-- docs/classes/TimeoutError.html | 10 +-- docs/classes/User.html | 42 +++++----- docs/functions/createAuth0Client.html | 2 +- docs/interfaces/Auth0ClientOptions.html | 38 +++++----- docs/interfaces/AuthorizationParams.html | 30 ++++---- docs/interfaces/DecodedToken.html | 6 +- docs/interfaces/GetTokenSilentlyOptions.html | 10 +-- docs/interfaces/GetTokenWithPopupOptions.html | 6 +- docs/interfaces/ICache.html | 10 +-- docs/interfaces/IdToken.html | 76 +++++++++---------- docs/interfaces/LogoutOptions.html | 17 +++-- docs/interfaces/LogoutUrlOptions.html | 6 +- docs/interfaces/PopupConfigOptions.html | 6 +- docs/interfaces/PopupLoginOptions.html | 4 +- docs/interfaces/RedirectLoginOptions.html | 23 +++--- docs/interfaces/RedirectLoginResult.html | 4 +- docs/types/CacheEntry.html | 2 +- docs/types/CacheKeyData.html | 2 +- docs/types/CacheLocation.html | 2 +- docs/types/Cacheable.html | 2 +- .../GetTokenSilentlyVerboseResponse.html | 2 +- docs/types/KeyManifestEntry.html | 2 +- docs/types/MaybePromise.html | 2 +- docs/types/TokenEndpointResponse.html | 2 +- docs/types/WrappedCacheEntry.html | 2 +- package-lock.json | 4 +- package.json | 2 +- src/version.ts | 2 +- 39 files changed, 244 insertions(+), 222 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4ae6541b4..fb1e51823 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,15 +1,28 @@ # Change Log +## [v2.0.5](https://github.com/auth0/auth0-spa-js/tree/v2.0.5) (2023-05-22) + +[Full Changelog](https://github.com/auth0/auth0-spa-js/compare/v2.0.4...v2.0.5) + +**Changed** + +- distinguish between missing and invalid state [\#1099](https://github.com/auth0/auth0-spa-js/pull/1099) ([frederikprijck](https://github.com/frederikprijck)) +- Allow sync openUrl [\#1087](https://github.com/auth0/auth0-spa-js/pull/1087) ([adamjmcgrath](https://github.com/adamjmcgrath)) + ## [v2.0.4](https://github.com/auth0/auth0-spa-js/tree/v2.0.4) (2023-02-22) + [Full Changelog](https://github.com/auth0/auth0-spa-js/compare/v2.0.3...v2.0.4) **Fixed** + - Correctly expose missing_refresh_token error from worker [\#1080](https://github.com/auth0/auth0-spa-js/pull/1080) ([frederikprijck](https://github.com/frederikprijck)) ## [v2.0.3](https://github.com/auth0/auth0-spa-js/tree/v2.0.3) (2023-02-04) + [Full Changelog](https://github.com/auth0/auth0-spa-js/compare/v2.0.2...v2.0.3) **Fixed** + - Ensure cookieDomain is used when using legacy Cookiestorage [\#1071](https://github.com/auth0/auth0-spa-js/pull/1071) ([frederikprijck](https://github.com/frederikprijck)) - Ensure to only clear current client cache when logging out [\#1068](https://github.com/auth0/auth0-spa-js/pull/1068) ([frederikprijck](https://github.com/frederikprijck)) @@ -26,12 +39,15 @@ This patch release is identical to `2.0.1` but has been released to ensure tooli Even though 2.0.1 was not vulnerable for the related [CVE](https://unit42.paloaltonetworks.com/jsonwebtoken-vulnerability-cve-2022-23529/) because of the fact that `jsonwebtoken` is a devDependency, we are cutting a release to ensure build tools no longer report our SDK as vulnerable to the mentioned CVE. ## [v2.0.1](https://github.com/auth0/auth0-spa-js/tree/v2.0.1) (2022-12-08) + [Full Changelog](https://github.com/auth0/auth0-spa-js/compare/v2.0.0...v2.0.1) **Changed** + - Add openUrl and deprecate onRedirect [\#1058](https://github.com/auth0/auth0-spa-js/pull/1058) ([frederikprijck](https://github.com/frederikprijck)) **Fixed** + - Export MissingRefreshTokenError [\#1043](https://github.com/auth0/auth0-spa-js/pull/1043) ([frederikprijck](https://github.com/frederikprijck)) ## [v2.0.0](https://github.com/auth0/auth0-spa-js/tree/v2.0.0) (2022-10-27) diff --git a/docs/classes/Auth0Client.html b/docs/classes/Auth0Client.html index 804036db6..0519230db 100644 --- a/docs/classes/Auth0Client.html +++ b/docs/classes/Auth0Client.html @@ -23,7 +23,7 @@

Hierarchy

+
  • Defined in Auth0Client.ts:114
  • @@ -60,7 +60,7 @@

    Parameters

    options: Auth0ClientOptions

    Returns Auth0Client

    +
  • Defined in Auth0Client.ts:141
  • Methods

    @@ -92,7 +92,7 @@

    Parameters

    Optional options: GetTokenSilentlyOptions

    Returns Promise<void>

    +
  • Defined in Auth0Client.ts:564
  • +
  • Defined in Auth0Client.ts:428
  • Returns Promise<GetTokenSilentlyVerboseResponse>

    +
  • Defined in Auth0Client.ts:589
  • Fetches a new access token and returns it.

    @@ -131,7 +131,7 @@

    Parameters

    Optional options: GetTokenSilentlyOptions
  • Returns Promise<string>

    +
  • Defined in Auth0Client.ts:598
  • Returns Promise<undefined | string>

    +
  • Defined in Auth0Client.ts:743
  • Returns Promise<undefined | TUser>

    +
  • Defined in Auth0Client.ts:415
  • Returns Promise<RedirectLoginResult<TAppState>>

    +
  • Defined in Auth0Client.ts:480
  • +
  • Defined in Auth0Client.ts:783
  • Returns Promise<void>

    +
  • Defined in Auth0Client.ts:348
  • Returns Promise<void>

    +
  • Defined in Auth0Client.ts:445
  • Returns Promise<void>

    +
  • Defined in Auth0Client.ts:828
  • Returns string

    +
  • Defined in cache/shared.ts:31
  • Returns CacheKey

    +
  • Defined in cache/shared.ts:53
  • Returns CacheKey

    +
  • Defined in cache/shared.ts:42
  • +
  • Defined in errors.ts:10
  • Returns void

    +
  • Defined in cache/cache-localstorage.ts:22
  • +
  • Defined in cache/cache-localstorage.ts:4
  • +
  • Defined in errors.ts:10
  • +
  • Defined in errors.ts:10
  • +
  • Defined in errors.ts:5
  • error_description: string
    +
  • Defined in errors.ts:5
  • popup: Window
    +
  • Defined in errors.ts:62
  • Methods

    @@ -100,7 +100,7 @@
    error_description: Returns GenericError
    +
  • Defined in errors.ts:10
  • +
  • Defined in errors.ts:5
  • error_description: string
    +
  • Defined in errors.ts:5
  • popup: Window
    +
  • Defined in errors.ts:54
  • Methods

    @@ -100,7 +100,7 @@
    error_description: Returns GenericError
    +
  • Defined in errors.ts:10
  • +
  • Defined in errors.ts:10
  • +
  • Defined in global.ts:186
  • cache?: ICache

    Specify a custom cache implementation to use for token storage and retrieval. This setting takes precedence over cacheLocation if they are both specified.

    +
  • Defined in global.ts:150
  • cacheLocation?: CacheLocation
    @@ -102,14 +102,14 @@
    +
  • Defined in global.ts:145
  • clientId: string

    The Client ID found on your Application settings page

    +
  • Defined in global.ts:131
  • cookieDomain?: string
    @@ -121,7 +121,7 @@
    +
  • Defined in global.ts:243
  • domain: string
    @@ -130,21 +130,21 @@
    +
  • Defined in global.ts:123
  • httpTimeoutInSeconds?: number

    Specify the timeout for HTTP calls using fetch. The default is 10 seconds.

    +
  • Defined in global.ts:191
  • issuer?: string

    The issuer to be used for validation of JWTs, optionally defaults to the domain above

    +
  • Defined in global.ts:127
  • leeway?: number
    @@ -153,7 +153,7 @@
    +
  • Defined in global.ts:137
  • legacySameSiteCookie?: boolean
    @@ -165,7 +165,7 @@
    +
  • Defined in global.ts:211
  • nowProvider?: (() => number | Promise<number>)
    @@ -181,7 +181,7 @@

    Type declaration

    Returns number | Promise<number>

    +
  • Defined in global.ts:258
  • sessionCheckExpiryDays?: number
    @@ -189,7 +189,7 @@
    +
  • Defined in global.ts:230
  • useCookiesForTransactions?: boolean
    @@ -201,7 +201,7 @@

    Notes

    You might want to enable this if you rely on your users being a may end up spanning across multiple tabs (e.g. magic links) or you cannot otherwise rely on session storage being available.

    +
  • Defined in global.ts:224
  • useFormData?: boolean
    @@ -210,7 +210,7 @@
    +
  • Defined in global.ts:251
  • useRefreshTokens?: boolean
    @@ -219,7 +219,7 @@
    +
  • Defined in global.ts:158
  • useRefreshTokensFallback?: boolean
    @@ -234,7 +234,7 @@

    Example

    let
    +
  • Defined in global.ts:180
  • +
  • Defined in global.ts:10
  • id_token_hint?: string

    Previously issued ID Token.

    +
  • Defined in global.ts:36
  • invitation?: string

    The Id of an invitation to accept. This is available from the user invitation URL that is given when participating in a user invitation flow.

    +
  • Defined in global.ts:91
  • login_hint?: string
    @@ -104,7 +104,7 @@
    +
  • Defined in global.ts:54
  • max_age?: string | number
    @@ -113,7 +113,7 @@
    +
  • Defined in global.ts:25
  • organization?: string
    @@ -122,7 +122,7 @@
    +
  • Defined in global.ts:86
  • prompt?: "none" | "login" | "consent" | "select_account"
    @@ -134,7 +134,7 @@
    +
  • Defined in global.ts:18
  • redirect_uri?: string
    @@ -145,7 +145,7 @@
    +
  • Defined in global.ts:100
  • scope?: string
    @@ -155,7 +155,7 @@
    +
  • Defined in global.ts:66
  • screen_hint?: string
    @@ -165,7 +165,7 @@
    +
  • Defined in global.ts:45
  • ui_locales?: string
    @@ -173,7 +173,7 @@
    +
  • Defined in global.ts:31
  • +
  • Defined in global.ts:361
  • cacheMode?: "on" | "off" | "cache-only"
    @@ -73,7 +73,7 @@
    +
  • Defined in global.ts:356
  • detailedResponse?: boolean
    @@ -82,7 +82,7 @@
    +
  • Defined in global.ts:400
  • timeoutInSeconds?: number
    @@ -90,7 +90,7 @@
    +
  • Defined in global.ts:392
  • +
  • Defined in global.ts:409
  • Returns MaybePromise<void>

    +
  • Defined in cache/shared.ts:102
  • Returns MaybePromise<void>

    +
  • Defined in cache/shared.ts:100
  • Returns Promise<void>

    +
  • Defined in global.ts:469
  • -
    openUrl?: false | ((url: string) => Promise<void>)
    +
    openUrl?: false | ((url: string) => void | Promise<void>)

    Used to control the redirect and not rely on the SDK to do the actual redirect.

    Set to false to disable the redirect, or provide a function to handle the actual redirect yourself.

    -

    Example

    await auth0.logout({
    async openUrl(url) {
    window.location.replace(url);
    }
    }); +

    Example

    await auth0.logout({
    openUrl(url) {
    window.location.replace(url);
    }
    }); +
    + +

    Example

    import { Browser } from '@capacitor/browser';

    await auth0.logout({
    async openUrl(url) {
    await Browser.open({ url });
    }
    });
    +
  • Defined in global.ts:492
  • +
  • Defined in global.ts:428
  • +
  • Defined in global.ts:339
  • Returns Promise<void>

    +
  • Defined in global.ts:301
  • -
    openUrl?: ((url: string) => Promise<void>)
    +
    openUrl?: ((url: string) => void | Promise<void>)

    Type declaration

      • -
      • (url: string): Promise<void>
      • +
      • (url: string): void | Promise<void>
      • Used to control the redirect and not rely on the SDK to do the actual redirect.

        -

        Example

        const client = new Auth0Client({
        async openUrl(url) {
        window.location.replace(url);
        }
        }); +

        Example

        const client = new Auth0Client({
        openUrl(url) {
        window.location.replace(url);
        }
        }); +
        + +

        Example

        import { Browser } from '@capacitor/browser';

        const client = new Auth0Client({
        async openUrl(url) {
        await Browser.open({ url });
        }
        });
        @@ -111,9 +114,9 @@

        Parameters

        • url: string
        -

        Returns Promise<void>

    +
  • Defined in global.ts:322
  • +
  • Defined in global.ts:329
  • +
  • Defined in cache/shared.ts:74
  • +
  • Defined in cache/shared.ts:6
  • +
  • Defined in global.ts:264
  • +
  • Defined in cache/shared.ts:95
  • +
  • Defined in global.ts:634
  • +
  • Defined in cache/shared.ts:91
  • +
  • Defined in global.ts:518
  • +
  • Defined in cache/shared.ts:86