0
joe704la created
In my Asp.net Core / Angular app I have a service that checks a few different things and if they meet a certain criteria I want to sign them out of the application as well as invalidate all access tokens. I saw in the SignInManager there is SignOutAsync. Does this sign them out entirely from the application as well as invalidate the tokens?
_signInManager.SignOutAsync();
5 Answer(s)
-
0
Is your token JWT or IdentityServer?
-
0
JWT
-
0
The JWT itself contains authentication information, and cannot be logged out unless it expires. Of course, you can set the blacklist to block the jwt token.
-
0
Okay thank you. If I set the expiration date expired it should technically log them out correct?
-
0
yes!