After attempting a failed login, app always uses invalid credentials until user clears Safari cache

  • auth0- webAuth
  • SDK Version- 1.27
auth.start { [weak self] (result) in
            switch result {
            case .failure(let error):
                log.error("Failed to SSO login. Error: \(error.localizedDescription)")
                switch error {
                case WebAuthError.userCancelled:
                    failure(.userCancelledWebAuth)
                default:
                    failure(.invalidCredentials)
                }
}

When I perform a login with an inactive user, the switch case goes to default in my case . However, the second time when a user opens the app, safari is using cache and is displaying an error without showing the login page. So the user is never getting an opportunity to enter valid credentials until the Safari cache is cleared.
Can you help me with how I can handle this use case using Auth0 SDK

Hey there!

The most effective way to handle that would be to open a GitHub issue in the SDK repo and then share the link to it here with us so we can ping repo maintainers for their direct help. Thanks!