little-wheels 1.2.11 → 1.2.12

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.
Files changed (2) hide show
  1. package/dist/index.es.js +4 -1
  2. package/package.json +1 -1
package/dist/index.es.js CHANGED
@@ -1934,7 +1934,10 @@ class Jn {
1934
1934
  */
1935
1935
  logout() {
1936
1936
  const { href: e, origin: t } = window.location, { id_token: a } = this.getTokenInfo() || {};
1937
- this.storage.removeItem("login_redirect_uri");
1937
+ if (this.storage.removeItem("login_redirect_uri"), !a) {
1938
+ this.login();
1939
+ return;
1940
+ }
1938
1941
  const s = {
1939
1942
  id_token_hint: a,
1940
1943
  post_logout_redirect_uri: e
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "little-wheels",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
4
4
  "description": "这是一个基于react自用轮子库",
5
5
  "repository": {
6
6
  "type": "git",