lucy-cli 2.0.0-alpha.6 → 2.0.0-alpha.7
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/package.json
CHANGED
@@ -1,20 +0,0 @@
|
|
1
|
-
diff --git a/build/auth/AppStrategy.js b/build/auth/AppStrategy.js
|
2
|
-
index 36a3bbf1ef7c6e8e52f0eb3d7a20713c505ed483..1c59bf6eda0acf2a3d094a8f665a4c5f75709175 100644
|
3
|
-
--- a/build/auth/AppStrategy.js
|
4
|
-
+++ b/build/auth/AppStrategy.js
|
5
|
-
@@ -1,5 +1,7 @@
|
6
|
-
import { parsePublicKeyIfEncoded } from '../helpers.js';
|
7
|
-
import { getTokenInfo } from '../get-token-info.js';
|
8
|
-
+import { jwtVerify, importSPKI } from 'jose';
|
9
|
-
+
|
10
|
-
/**
|
11
|
-
* Creates an authentication strategy for Wix Apps OAuth installation process.
|
12
|
-
* Use this authentication strategy when making requests to Wix APIs from your Wix App backend.
|
13
|
-
@@ -212,7 +214,6 @@ export function AppStrategy(opts) {
|
14
|
-
if (!opts.publicKey) {
|
15
|
-
throw new Error('Missing public key. Make sure to pass it to the AppStrategy');
|
16
|
-
}
|
17
|
-
- const { jwtVerify, importSPKI } = await import('jose');
|
18
|
-
const publicKey = await importSPKI(parsePublicKeyIfEncoded(opts.publicKey), 'RS256');
|
19
|
-
const decoded = await jwtVerify(token, publicKey, verifyCallerClaims
|
20
|
-
? {
|