My Web Auth on iOS fails with a userCancelled error before it even opens

Please include the following information in your post:

  • Which SDK this is regarding: e.g. auth0-ios
  • SDK Version: 1.0
  • Platform Version: iOS 14.6
                .scope("openid profile offline_access")
                .start { result in
                    switch result {
                    case .failure(let error):
                        print("Error: \(error)")
               authenticationFailed, object: nil)
                        return promise(.failure(.authFailure))
                    case .success(let credentials):
                        guard let token = credentials.accessToken,
                              let expiresIn = credentials.expiresIn else {
                            return promise(.failure(.authFailure))

                        keychain.setString(token, forKey: API.accessToken)
                        userDefaults.set(expiresIn, forKey: API.expiresIn)
                        DispatchQueue.main.async {
                   didAuthenticate, object: nil)
                        return promise(.success(token))