Hello @Ika,
Thank you reaching out to Microsoft Q&A.
We understand that you are looking for an option to revoke the access token once the user signs out from an application due to some security concerns. Unfortunately, as stated below, you cannot revoke access tokens. Access tokens are short-lived and by default valid for 1 hour. However, when the refresh tokens are revoked, the application will not be able to redeem the refresh tokens (long-lived tokens) to acquire new access tokens. You may also consider setting access token lifetime to a lower value than 1 hour (minimum supported value is 10 minutes and the maximum is 1 day).
Kindly refer this document for more information: https://learn.microsoft.com/en-us/entra/identity-platform/configure-token-lifetimes
https://learn.microsoft.com/en-us/entra/identity-platform/refresh-tokens
In general, if a user authenticates with Azure AD and checks the "Keep me signed in" box, a single sign-on session is established with the user’s browser and Azure AD. The Single Sign-On Session Token, in the form of a cookie, represents this session. It is important to note that the SSO session token is not bound to a specific resource/client application. SSO session tokens can be revoked, and their validity is checked every time they are used.
Also, there are some features like token protection from the conditional access policy. Please refer the below document for more details: https://learn.microsoft.com/en-us/entra/identity/conditional-access/concept-token-protection
You can use the below graph call to revoke the Refresh token:
To revoke the refresh token of the signed-in user:
POST https://graph.microsoft.com/v1.0/me/revokeSignInSessions
To revoke the refresh token of another user:
POST https://graph.microsoft.com/v1.0/users/object_id_or_upn_of_user/revokeSignInSessions
Alternatively, you can use below PowerShell cmdlets as well:
Revoke-AzureADSignedInUserAllRefreshToken
Revoke-AzureADUserAllRefreshToken
Hope this helps. Do let us know if you any further queries.
Thanks & Regards
Janaki Kota