This may not be relevant to Ionic. I am not sure. But I have Ionic app and I am trying to implement Logout functionality which doesn’t seem like working so thought of checking here to see if anybody else is in the same boat and how they resolved it.
So, in my app I am using Microsoft Azure Active Directory (AAD) for authentication. And I am using something called Azure Mobile App (one of the the Azure App Service product) for authentication. The login part is working fine. However, for the logout part, it does appear to be successful but when I launch the app again it logs me in directly instead of showing the login page.
As I mentioned in the beginning, this may not be Ionic related. And I am trying to find more information from Azure forums too. And, while do that, I thought of trying to clear the cache/cookies (of course, if they exist) in Ionic app and see if that helps.
I came across some forums/posts that talk about
window.cookies.clear(). But not completely sure on how to do it.
For example, I am not sure what that
window refers to in Ionic. Is it like I just declare it as
declare var window: any;?
Any pointers/suggestions/help will be a great help.