Hi! - A questions about propper error handling/logging.
We are seeing many of our users experiencing issues login into our application.
We are using Okta Signing Widget in a React application, and to get the tokens we use the showSignInToGetTokens
method. on the return the tokens are set using oktaAuth.handleLoginRedirect(tokens)
.
It seems to work as intended, but we keep getting reports from users having issues logging into the application. Trying to debug this have proven quite hard, since the errors we are able to log are really not very helpfull.
The .catch on showSignInToGetTokens
have not triggered, meaning that the issues must happen before or after that step.
Using signIn.on("afterError"...
we get the same generic message for every error we encounter: "message":"Authentication failed"
.
I must be missing some simple way of getting more detailed error messages to help me debug these issues?
Hope someone in here can point me in the right direction!