Showing Login Alert popup, When logout from iOS Device ( Language :- Swift )

We are facing the issue, when we logout from Auth0.
its showing Login alert ( and asking :- “wants to sign in…” ), not showing logout thing.

Can you provide some guidance to overcome this issue.

Hi @amtdeveloper,

What request is being made during logout? Can you provide the code?

Thanks,
Dan

Hi Dan,

Thank you for responding

Here’s the code i calling , when I sign out

  Auth0
            .webAuth()
            .clearSession(federated: false){
                
                switch $0{
                    
                case true:
                    
                    print("Done")
                    
                    let mainStoryBoard = UIStoryboard(name: "Main", bundle: nil)
                    let redViewController = mainStoryBoard.instantiateViewController(withIdentifier: "LoginVC") as! LoginVC
                    let appDelegate = UIApplication.shared.delegate as! AppDelegate
                    appDelegate.window?.rootViewController = redViewController
                    appDelegate.window?.makeKeyAndVisible()
                    
                    break
                    
                case false:
                    
                 print("Not Done")
                    
                }
        }

Thanks,
amtDeveloper

@amtdeveloper,

What are you expecting to see when you say the ‘logout thing’?

Hi Dan,

I’m Expecting the result like…

  1. it should show the - popup as " Wants to signout"; when i hit the Sign out
  2. & When i sign out from the app; the credentials should be removed in SDK & Web too…
  3. when I sign in again it should not take previous credentials, it should ask new credentials to signin.

Thanks,
AmtDeveloper

After you are making the clearSession call are you getting a confirmed logout? Can you record a screen capture to show what happens?

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.