Hello!
I am observing multiple errors that are thrown by okta-auth-jslibrary that we are using in single page application developed using react. These errors are not consistent and not reproducible for all users at all times. We would like to capture these errors and re-throw a proper exception or error that can indicate user to retry login once again or simply reload the page.
The errors that are observed till now are -
- Authsdkerror the jwt token issued in the future (It was found that if machine date and time is ahead of token issued date by 5 minutes, then this error is thrown. Machine/ laptop date is not in sync with current local time of the user trying to login.)
- AuthSdkError: Unable to retrieve OAuth redirect params from storage
- Error: AuthApiError
Library versions -
“@okta/okta-auth-js”: “^5.9.1”
“@okta/okta-react”: “^6.3.0”
Can you please recommend and suggest approach to handle the errors?