Search code examples
iosswiftswift3twitter-digits

How to delete login session of Digit?


I have installed Digit mobile verification in my app and when the user verifies his mobile number and comes back, the app works fine. Now if the user want to make a sign up process again, his session is automatically created. Since I'm using this to only verify user's mobile number and then continue with my own sign up process. How can I do that?
I want to just Remove all sessions.


Solution

  • I used Digits in my project with the same intent. I used to simply call

    Digits.sharedInstance().logOut()
    

    Right before calling the method for authentication. This used to start a fresh login flow.