You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
The text was updated successfully, but these errors were encountered:
This may not fit your need, but if you are looking to log out the user from mobile (delete refresh token etc.) , and always force them to re-authenticate, auth0 may support a parameter like this: https://stackoverflow.com/a/14393492/3218158
AuthSession lets you pass { extraParams: { prompt: 'login' }} which was exactly what I needed in my use case.
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.
The text was updated successfully, but these errors were encountered: