From 6d56f6a8293909e8c55198708c12a7d30e32b785 Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Tue, 19 Sep 2023 21:20:05 +0200 Subject: [PATCH 1/3] Add FAQ about using from CDN --- FAQ.md | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/FAQ.md b/FAQ.md index 7dca928ef..0bc7d6d7d 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 npn 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 + + +``` From fcc4cd51a3179040407aadaa0c6aa4ca5c30cf1c Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Tue, 19 Sep 2023 21:22:02 +0200 Subject: [PATCH 2/3] Update FAQ.md --- FAQ.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FAQ.md b/FAQ.md index 0bc7d6d7d..c7f173e6d 100644 --- a/FAQ.md +++ b/FAQ.md @@ -102,7 +102,7 @@ new Auth0Client({ ## 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 npn registry. +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 From 4aa952d9fdbb46704429a04c493ccfef61f836f9 Mon Sep 17 00:00:00 2001 From: Frederik Prijck Date: Tue, 19 Sep 2023 21:23:56 +0200 Subject: [PATCH 3/3] Update .shiprc --- .shiprc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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" }