-
Notifications
You must be signed in to change notification settings - Fork 12
Description
How do you handle logging out? I see AuthSession.dismiss() in the logout function (commented out), but does that method actually log the user out? According to the docs, nothing is returned by this function, and I don’t believe it’s actually invalidating the token with Auth0. I’m trying to do a full logout, that is, clearing whatever Auth0 has cached on the device that allows users to log in or renew their token without having to re-enter their password. After calling .dismiss(), I find the app is still accessible without re-entering a password. I believe AuthSession.revokeAsync() may be what’s needed to accomplish this, but I haven’t been able to get it to work, I believe because I’m not passing it the correct arguments – I find the docs a bit vague and haven’t found any sample code that might clarify the use of this method. Logging out is a critical feature, it would be nice if we could piece it together so your sample code is more complete – thanks for providing it.