- 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