@asgardeo/auth-react 1.1.5 → 1.1.6
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/dist/main.js +38 -38
- package/dist/src/authenticate.d.ts.map +1 -1
- package/dist/tsconfig.tsbuildinfo +5 -5
- package/package.json +2 -2
- package/src/authenticate.tsx +4 -2
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authenticate.d.ts","sourceRoot":"","sources":["../../src/authenticate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAaH,OAAc,EACV,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EAMZ,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,UAAU,EAAe,MAAM,GAAG,CAAC;AAC5C,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAsB,MAAM,UAAU,CAAC;AASrF,QAAA,MAAM,UAAU,SAAgB,CAAC;AAOjC,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;CAC1B;AAED,QAAA,MAAM,YAAY,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,
|
|
1
|
+
{"version":3,"file":"authenticate.d.ts","sourceRoot":"","sources":["../../src/authenticate.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAaH,OAAc,EACV,iBAAiB,EACjB,iBAAiB,EACjB,SAAS,EAMZ,MAAM,OAAO,CAAC;AACf,OAAO,EAAE,UAAU,EAAe,MAAM,GAAG,CAAC;AAC5C,OAAO,OAAO,MAAM,OAAO,CAAC;AAC5B,OAAO,EAAE,oBAAoB,EAAE,eAAe,EAAsB,MAAM,UAAU,CAAC;AASrF,QAAA,MAAM,UAAU,SAAgB,CAAC;AAOjC,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;CAC1B;AAED,QAAA,MAAM,YAAY,EAAE,iBAAiB,CAAC,iBAAiB,CAAC,0BAA0B,CAAC,CAwLlF,CAAC;AAEF,QAAA,MAAM,cAAc,QAAO,oBAE1B,CAAC;AAEF,OAAO,EAAE,UAAU,EAAE,YAAY,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -277,8 +277,8 @@
|
|
|
277
277
|
"affectsGlobalScope": false
|
|
278
278
|
},
|
|
279
279
|
"../../node_modules/@asgardeo/auth-js/dist/src/client.d.ts": {
|
|
280
|
-
"version": "
|
|
281
|
-
"signature": "
|
|
280
|
+
"version": "80e0cb682af7e96c86769ccdc590bc10a41c5cced0356d29dfed81cd8879cae6",
|
|
281
|
+
"signature": "80e0cb682af7e96c86769ccdc590bc10a41c5cced0356d29dfed81cd8879cae6",
|
|
282
282
|
"affectsGlobalScope": false
|
|
283
283
|
},
|
|
284
284
|
"../../node_modules/@asgardeo/auth-js/dist/src/utils/authentication-utils.d.ts": {
|
|
@@ -432,8 +432,8 @@
|
|
|
432
432
|
"affectsGlobalScope": false
|
|
433
433
|
},
|
|
434
434
|
"../../node_modules/@asgardeo/auth-spa/dist/src/utils/spa-utils.d.ts": {
|
|
435
|
-
"version": "
|
|
436
|
-
"signature": "
|
|
435
|
+
"version": "2d5ad57e9782114fb8605b0a1f3d81ae57576e0b3a7b7c93244c0ced0c73f80b",
|
|
436
|
+
"signature": "2d5ad57e9782114fb8605b0a1f3d81ae57576e0b3a7b7c93244c0ced0c73f80b",
|
|
437
437
|
"affectsGlobalScope": false
|
|
438
438
|
},
|
|
439
439
|
"../../node_modules/@asgardeo/auth-spa/dist/src/public-api.d.ts": {
|
|
@@ -571,7 +571,7 @@
|
|
|
571
571
|
"affectsGlobalScope": false
|
|
572
572
|
},
|
|
573
573
|
"../src/authenticate.tsx": {
|
|
574
|
-
"version": "
|
|
574
|
+
"version": "7cd2b8984b96368015a5185a857894bd5fca1fd6f6a20da9e1bb58ebada200a8",
|
|
575
575
|
"signature": "336cb282ec49398aece02113130600346cc39c172377aad24e5cb639ce3d226b",
|
|
576
576
|
"affectsGlobalScope": false
|
|
577
577
|
},
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@asgardeo/auth-react",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.6",
|
|
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.3.
|
|
39
|
+
"@asgardeo/auth-spa": "^0.3.6"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@babel/cli": "^7.10.5",
|
package/src/authenticate.tsx
CHANGED
|
@@ -179,7 +179,7 @@ const AuthProvider: FunctionComponent<PropsWithChildren<AuthProviderPropsInterfa
|
|
|
179
179
|
authParams?.state
|
|
180
180
|
);
|
|
181
181
|
} catch(error) {
|
|
182
|
-
if(error
|
|
182
|
+
if(error && Object.prototype.hasOwnProperty.call(error, "code")) {
|
|
183
183
|
setError(error);
|
|
184
184
|
}
|
|
185
185
|
}
|
|
@@ -206,7 +206,9 @@ const AuthProvider: FunctionComponent<PropsWithChildren<AuthProviderPropsInterfa
|
|
|
206
206
|
.catch((error) => {
|
|
207
207
|
// TODO: Add logs when a logger is available.
|
|
208
208
|
// Tracked here https://github.com/asgardeo/asgardeo-auth-js-sdk/issues/151.
|
|
209
|
-
|
|
209
|
+
if(error && Object.prototype.hasOwnProperty.call(error, "code")) {
|
|
210
|
+
setError(error);
|
|
211
|
+
}
|
|
210
212
|
});
|
|
211
213
|
})();
|
|
212
214
|
|