It’s very confusing how to actually perform logout… I’m currently trying this and it doesn’t do anything, I’m still logged in
func logoutAuth0(callback: @escaping(Bool) -> ()) {
CredentialsManager(authentication: Auth0.authentication()).revoke { (error) in
A0SimpleKeychain.init(service: "Auth0").clearAll()
Auth0
.webAuth()
.clearSession(federated: true) { (done) in
callback(CredentialsManager(authentication: Auth0.authentication()).clear())
}
}
}
I’ve read the docs but they seem vague to me or maybe I’m dull headed. If anyone could tell me what I’m doing wrong, I’d greatly appreciate it !
Thanks