@logto/browser 0.1.16 → 0.1.17
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/lib/index.js +7 -1
- package/package.json +4 -4
package/lib/index.js
CHANGED
|
@@ -219,7 +219,13 @@ class LogtoClient {
|
|
|
219
219
|
const accessTokenKey = (0, utils_1.buildAccessTokenKey)(resource);
|
|
220
220
|
const { appId: clientId } = this.logtoConfig;
|
|
221
221
|
const { tokenEndpoint } = await this.getOidcConfig();
|
|
222
|
-
const { accessToken, refreshToken, idToken, scope, expiresIn } = await (0, js_1.fetchTokenByRefreshToken)({
|
|
222
|
+
const { accessToken, refreshToken, idToken, scope, expiresIn } = await (0, js_1.fetchTokenByRefreshToken)({
|
|
223
|
+
clientId,
|
|
224
|
+
tokenEndpoint,
|
|
225
|
+
refreshToken: this.refreshToken,
|
|
226
|
+
resource,
|
|
227
|
+
scopes: resource ? ['offline_access'] : undefined, // Force remove openid scope from the request
|
|
228
|
+
}, this.requester);
|
|
223
229
|
this.accessTokenMap.set(accessTokenKey, {
|
|
224
230
|
token: accessToken,
|
|
225
231
|
scope,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logto/browser",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.17",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"exports": "./lib/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -23,12 +23,12 @@
|
|
|
23
23
|
"prepack": "pnpm test"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@logto/js": "^0.1.
|
|
26
|
+
"@logto/js": "^0.1.17",
|
|
27
27
|
"@silverhand/essentials": "^1.1.6",
|
|
28
28
|
"jose": "^4.5.0",
|
|
29
29
|
"lodash.get": "^4.4.2",
|
|
30
30
|
"lodash.once": "^4.1.1",
|
|
31
|
-
"superstruct": "^0.
|
|
31
|
+
"superstruct": "^0.16.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@jest/types": "^27.5.1",
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"publishConfig": {
|
|
55
55
|
"access": "public"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "57e93385829eceb3c1b2ffb92b90901aa174a59a"
|
|
58
58
|
}
|