@affinidi/affinidi-react-auth
Advanced tools
Comparing version 1.0.3 to 1.0.4
@@ -21,3 +21,2 @@ "use strict"; | ||
const [state, setState] = (0, react_1.useState)(null); | ||
const [error, setError] = (0, react_1.useState)(); | ||
(0, react_1.useEffect)(() => { | ||
@@ -34,4 +33,6 @@ const urlObject = new URL(window.location.href); | ||
const errorDescription = params.get('error_description') || ''; | ||
setError(`${types_1.errorMessageMap[perror] || 'Unexpected error'} - ${(errorDescription && types_1.errorDescriptionMessageMap[errorDescription]) || undefined}`); | ||
setStorgageData({ error }); | ||
setStorgageData({ | ||
error: `${types_1.errorMessageMap[perror] || 'Unexpected error'} - ${(errorDescription && types_1.errorDescriptionMessageMap[errorDescription]) || undefined}`, | ||
}); | ||
window.location.href = redirectTo; | ||
} | ||
@@ -38,0 +39,0 @@ }, []); |
{ | ||
"name": "@affinidi/affinidi-react-auth", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "Affinidi react auth library for creating Affinidi Login Button", | ||
@@ -5,0 +5,0 @@ "author": "affinidi.com", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1495
117586