Is it possible to log out without redirect?
Every time I sign up user I need to verify if the user that is in external DB (db with invitation tokens). I do it just after sign up is completed. When I discover that user shouldn't be a allowed to log in I need to call logout
to clear cookies/storage in login popups (if I don't after opening singin popup again azure tries to log user in automatically and is not allowing to, for example, sign up again).
The refresh of the page is unnecessary in my case, since it's a sign up process and I'm already at the login page to what it refreshes.