@logto/browser 0.1.5 → 0.1.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/lib/index.js +3 -0
- package/package.json +5 -5
package/lib/index.js
CHANGED
|
@@ -85,6 +85,7 @@ class LogtoClient {
|
|
|
85
85
|
}
|
|
86
86
|
localStorage.setItem(idTokenKey, idToken);
|
|
87
87
|
}
|
|
88
|
+
// eslint-disable-next-line complexity
|
|
88
89
|
async getAccessToken(resource) {
|
|
89
90
|
if (!this.idToken) {
|
|
90
91
|
throw new errors_1.LogtoClientError('not_authenticated');
|
|
@@ -148,6 +149,8 @@ class LogtoClient {
|
|
|
148
149
|
resources,
|
|
149
150
|
});
|
|
150
151
|
this.signInSession = { redirectUri, codeVerifier, state };
|
|
152
|
+
this.refreshToken = null;
|
|
153
|
+
this.idToken = null;
|
|
151
154
|
window.location.assign(signInUri);
|
|
152
155
|
}
|
|
153
156
|
isSignInRedirected(url) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@logto/browser",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.7",
|
|
4
4
|
"main": "./lib/index.js",
|
|
5
5
|
"exports": "./lib/index.js",
|
|
6
6
|
"typings": "./lib/index.d.ts",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"prepack": "pnpm test"
|
|
25
25
|
},
|
|
26
26
|
"dependencies": {
|
|
27
|
-
"@logto/js": "^0.1.
|
|
27
|
+
"@logto/js": "^0.1.7",
|
|
28
28
|
"@silverhand/essentials": "^1.1.6",
|
|
29
29
|
"jose": "^4.5.0",
|
|
30
30
|
"lodash.get": "^4.4.2",
|
|
@@ -33,8 +33,8 @@
|
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@jest/types": "^27.5.1",
|
|
36
|
-
"@silverhand/eslint-config": "^0.
|
|
37
|
-
"@silverhand/ts-config": "^0.
|
|
36
|
+
"@silverhand/eslint-config": "^0.14.0",
|
|
37
|
+
"@silverhand/ts-config": "^0.14.0",
|
|
38
38
|
"@types/jest": "^27.4.0",
|
|
39
39
|
"@types/lodash.get": "^4.4.6",
|
|
40
40
|
"@types/lodash.once": "^4.1.6",
|
|
@@ -55,5 +55,5 @@
|
|
|
55
55
|
"publishConfig": {
|
|
56
56
|
"access": "public"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "45f2ad06fa069eac66016696703b1a37e1509ffb"
|
|
59
59
|
}
|