@golocalinteractive/golocal-cloud-wrapper 1.2.2 → 1.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/golocal-cloud-wrapper.cjs.js +54 -54
- package/dist/golocal-cloud-wrapper.es.js +847 -829
- package/dist/hooks/use-navigation-config.d.ts.map +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/lib/auth/client.d.ts +3 -1
- package/dist/lib/auth/client.d.ts.map +1 -1
- package/dist/lib/auth/middleware.d.ts.map +1 -1
- package/dist/lib/auth/server.d.ts +5 -3
- package/dist/lib/auth/server.d.ts.map +1 -1
- package/dist/providers/GLICloudProvider.d.ts +11 -1
- package/dist/providers/GLICloudProvider.d.ts.map +1 -1
- package/dist/server.cjs.js +4 -4
- package/dist/server.es.js +601 -585
- package/dist/token-CPL6JoNm.js +25 -0
- package/dist/token-OmUSTZxZ.cjs +1 -0
- package/package.json +1 -1
- package/dist/token-B1R9SeIE.cjs +0 -1
- package/dist/token-Cp2_aQtj.js +0 -15
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { Auth0Client as r } from "@auth0/nextjs-auth0/server";
|
|
2
|
+
const s = "openid profile email permissions";
|
|
3
|
+
let t = null;
|
|
4
|
+
function i(e) {
|
|
5
|
+
const { authorizationParameters: a, ...o } = e ?? {}, n = process.env.AUTH0_AUDIENCE;
|
|
6
|
+
return new r({
|
|
7
|
+
...o,
|
|
8
|
+
authorizationParameters: {
|
|
9
|
+
scope: s,
|
|
10
|
+
...n ? { audience: n } : {},
|
|
11
|
+
...a
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
}
|
|
15
|
+
function c(e) {
|
|
16
|
+
return e ? i(e) : (t || (t = i()), t);
|
|
17
|
+
}
|
|
18
|
+
async function l() {
|
|
19
|
+
const e = await c().getAccessToken();
|
|
20
|
+
return (e == null ? void 0 : e.token) || "No token available";
|
|
21
|
+
}
|
|
22
|
+
export {
|
|
23
|
+
l as a,
|
|
24
|
+
c as g
|
|
25
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";const o=require("@auth0/nextjs-auth0/server"),a="openid profile email permissions";let t=null;function i(e){const{authorizationParameters:s,...c}=e??{},n=process.env.AUTH0_AUDIENCE;return new o.Auth0Client({...c,authorizationParameters:{scope:a,...n?{audience:n}:{},...s}})}function r(e){return e?i(e):(t||(t=i()),t)}async function u(){const e=await r().getAccessToken();return(e==null?void 0:e.token)||"No token available"}exports.accessToken=u;exports.getAuth0Client=r;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@golocalinteractive/golocal-cloud-wrapper",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "A React provider component for Go Local Interactive's cloud services",
|
|
5
5
|
"license": "ISC",
|
|
6
6
|
"author": "Tanner Barrett, Cody Lacey, Go Local Interactive",
|
package/dist/token-B1R9SeIE.cjs
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";const n=require("@auth0/nextjs-auth0/server"),s=new n.Auth0Client({authorizationParameters:{scope:"openid profile email permissions",audience:`${process.env.AUTH0_AUDIENCE}`}});async function t(){const e=await s.getAccessToken();return(e==null?void 0:e.token)||"No token available"}exports.accessToken=t;exports.auth0=s;
|
package/dist/token-Cp2_aQtj.js
DELETED
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Auth0Client as a } from "@auth0/nextjs-auth0/server";
|
|
2
|
-
const o = new a({
|
|
3
|
-
authorizationParameters: {
|
|
4
|
-
scope: "openid profile email permissions",
|
|
5
|
-
audience: `${process.env.AUTH0_AUDIENCE}`
|
|
6
|
-
}
|
|
7
|
-
});
|
|
8
|
-
async function s() {
|
|
9
|
-
const e = await o.getAccessToken();
|
|
10
|
-
return (e == null ? void 0 : e.token) || "No token available";
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
s as a,
|
|
14
|
-
o as b
|
|
15
|
-
};
|