You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This issue is noticed in the Asgardeo react native sample application, which is using the auth-js SDK through Asgardeo react native SDK. This is a intermittent issue which only happens time to time.
In the React native sample application, when a user is redirecting back to the application upon a successful authentication, the UI will hang in the login screen without proceeding to the home page. The following error is noticed in the debugger console.
D: Decoding ID token failed
The user is able to proceed to the landing page if he clicks the login button again.
Able to resolve this if we add a waiting before invoking the userInformation() function. This shouldn't be needed according to the waits in the SDK implementation.
Below is the expected implementation of the React native sample application. handleAuthUrl function is called upon successful reception of the browser redirection.
When redirecting user back to the application upon a successful authentication, the react native sample application will invoke the requestAccessTokenDetails() function, which will then internally invoke the auth-js requestAccessToken() function. Upon reception of the token, the application will call the userInformation() function which will then internally invoke the auth-js getBasicUserInfo() function. This function will invoke the _authenticationCore.getBasicUserInfo() function.
Describe the issue:
In the React native sample application, when a user is redirecting back to the application upon a successful authentication, the UI will hang in the login screen without proceeding to the home page. The following error is noticed in the debugger console.
The user is able to proceed to the landing page if he clicks the login button again.
Code implementation
Able to resolve this if we add a waiting before invoking the
userInformation()
function. This shouldn't be needed according to the waits in the SDK implementation.Environment information
The text was updated successfully, but these errors were encountered: