@asgardeo/auth-react 1.1.12 → 1.1.13

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.
@@ -1 +1 @@
1
- {"version":3,"file":"authenticate.d.ts","sourceRoot":"","sources":["../../src/authenticate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAEH,iBAAiB,EAQpB,MAAM,oBAAoB,CAAC;AAE5B,OAAc,EACV,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EAMZ,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,UAAU,EAAe,MAAM,GAAG,CAAC;AAE5C,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAsB,MAAM,UAAU,CAAC;AAcrF,UAAU,0BAA0B;IAChC,MAAM,EAAE,eAAe,CAAC;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AAED,QAAA,MAAM,YAAY,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,CAgMlF,CAAC;AAEF,QAAA,MAAM,cAAc,QAAO,oBAE1B,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC"}
1
+ {"version":3,"file":"authenticate.d.ts","sourceRoot":"","sources":["../../src/authenticate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAEH,iBAAiB,EAQpB,MAAM,oBAAoB,CAAC;AAE5B,OAAc,EACV,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EAMZ,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,UAAU,EAAe,MAAM,GAAG,CAAC;AAE5C,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAsB,MAAM,UAAU,CAAC;AAcrF,UAAU,0BAA0B;IAChC,MAAM,EAAE,eAAe,CAAC;IACxB,QAAQ,CAAC,EAAE,SAAS,CAAC;IACrB,aAAa,CAAC,EAAE,MAAM,OAAO,CAAC,UAAU,CAAC,CAAC;IAC1C,SAAS,CAAC,EAAE,MAAM,IAAI,CAAC;IACvB,MAAM,CAAC,EAAE,iBAAiB,CAAC;CAC9B;AAED,QAAA,MAAM,YAAY,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,CAkMlF,CAAC;AAEF,QAAA,MAAM,cAAc,QAAO,oBAE1B,CAAC;AAEF,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC"}
@@ -362,8 +362,8 @@
362
362
  "affectsGlobalScope": false
363
363
  },
364
364
  "../../node_modules/@asgardeo/auth-spa/dist/src/helpers/spa-helper.d.ts": {
365
- "version": "371aaafa332f643058936d0d895525143d3defda81ead93eb3f83594a83a3d6c",
366
- "signature": "371aaafa332f643058936d0d895525143d3defda81ead93eb3f83594a83a3d6c",
365
+ "version": "b0d8707daeb8c23e2a5f19775de1d728bb10823325bef53a00cfdbab46b9e949",
366
+ "signature": "b0d8707daeb8c23e2a5f19775de1d728bb10823325bef53a00cfdbab46b9e949",
367
367
  "affectsGlobalScope": false
368
368
  },
369
369
  "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/models/axios-http-client.d.ts": {
@@ -412,8 +412,8 @@
412
412
  "affectsGlobalScope": false
413
413
  },
414
414
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/http-client.d.ts": {
415
- "version": "092da24c9c6b2375e883243110732b2914e58cffd108785aa319bf0c5643c3a2",
416
- "signature": "092da24c9c6b2375e883243110732b2914e58cffd108785aa319bf0c5643c3a2",
415
+ "version": "3a6c34d31bf5cc65369d0261e42281ada76e471ab192bbc71d002e01987ebf51",
416
+ "signature": "3a6c34d31bf5cc65369d0261e42281ada76e471ab192bbc71d002e01987ebf51",
417
417
  "affectsGlobalScope": false
418
418
  },
419
419
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/web-worker.d.ts": {
@@ -626,7 +626,7 @@
626
626
  "affectsGlobalScope": false
627
627
  },
628
628
  "../src/authenticate.tsx": {
629
- "version": "ec3e51ddc268597582d54ba79963b80eaa23a5ad49d7be76955b679ab92fd268",
629
+ "version": "3cea96c50c5f0cb0a4f110fe9556aabcf7604b07978cac9e25c9a0d39588941f",
630
630
  "signature": "150d2de23192873482689c0b27ce8d8aa18d83441455f5402821f15f64b59133",
631
631
  "affectsGlobalScope": false
632
632
  },
@@ -1398,6 +1398,7 @@
1398
1398
  ],
1399
1399
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/http-client.d.ts": [
1400
1400
  "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/index.d.ts",
1401
+ "../../node_modules/@asgardeo/auth-spa/dist/src/models/index.d.ts",
1401
1402
  "../../node_modules/axios/index.d.ts"
1402
1403
  ],
1403
1404
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/index.d.ts": [
@@ -1958,6 +1959,7 @@
1958
1959
  ],
1959
1960
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/http-client.d.ts": [
1960
1961
  "../../node_modules/@asgardeo/auth-spa/dist/src/http-client/index.d.ts",
1962
+ "../../node_modules/@asgardeo/auth-spa/dist/src/models/index.d.ts",
1961
1963
  "../../node_modules/axios/index.d.ts"
1962
1964
  ],
1963
1965
  "../../node_modules/@asgardeo/auth-spa/dist/src/models/index.d.ts": [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@asgardeo/auth-react",
3
- "version": "1.1.12",
3
+ "version": "1.1.13",
4
4
  "description": "Asgardeo Auth React SDK for React Applications.",
5
5
  "keywords": [
6
6
  "WSO2",
@@ -36,7 +36,7 @@
36
36
  "author": "WSO2",
37
37
  "license": "Apache-2.0",
38
38
  "dependencies": {
39
- "@asgardeo/auth-spa": "^0.4.2"
39
+ "@asgardeo/auth-spa": "^0.4.4"
40
40
  },
41
41
  "devDependencies": {
42
42
  "@babel/cli": "^7.10.5",
@@ -148,6 +148,8 @@ const AuthProvider: FunctionComponent<PropsWithChildren<AuthProviderPropsInterfa
148
148
  useEffect(() => {
149
149
  (async () => {
150
150
  let isSignedOut: boolean = false;
151
+ // If the component was mounted after the user was redirected to the application upon a successful logout,
152
+ // then the locally stored user session will be cleared as a side effect of registering this sign-out hook.
151
153
  await on(Hooks.SignOut, () => {
152
154
  isSignedOut = true;
153
155