diff --git a/.shiprc b/.shiprc index 5e0f26754..5215f1661 100644 --- a/.shiprc +++ b/.shiprc @@ -1,7 +1,8 @@ { "files": { "src/version.ts": [], - "README.md": ["{MAJOR}.{MINOR}"] + "README.md": ["{MAJOR}.{MINOR}"], + "FAQ.md": ["{MAJOR}.{MINOR}.{PATCH}"] }, "postbump": "npm run docs" } diff --git a/FAQ.md b/FAQ.md index 7dca928ef..c7f173e6d 100644 --- a/FAQ.md +++ b/FAQ.md @@ -99,3 +99,39 @@ new Auth0Client({ useCookiesForTransaction: true }); ``` + +## How to use from a CDN + +There are two ways to use our SDK when you want to rely on a Content Delivery Network to host the bundle and not install our SDK through the npm registry. + +### Using our own CDN bundle + +Our own CDN bundle exposes both `createAuth0Client` and `Auth0Client` on a global `auth0` variable, and can be used as shown below. + +```html + +``` + +### Using import maps with unpkg +If you want to use a CDN bundle together with import maps, you will need to use our ESM bundle from unpkg: + +```html + + +```