Lock.swift correct way to logout/clear session?


I have implemented login with the Lock library for our iOS app but cannot find how to do logout.

I have been able to only find this related to webAuth:

    .clearSession(federated: false) { result in
        if result {
            // Session cleared

Which doesn’t work for me, since I am not using web auth for the initial login.

How should I correctly logout current user with the Lock library? I am using the version 2.23 and we are targeting iOS 13+.


Hi @nemecek_f,

Welcome to the Auth0 Community!

I understand that you’d like to perform a logout for your application.

Please take a look at our Logout documentation that explains how to accomplish Logout and let me know if you have any questions.

Thank you.