In our app, we are using the oauth2 flow to authenticate users using the identity manager's registerOAuthInfos() and getCredential() methods.
Once the user signs out, we are calling the destroyCredentials() method.
But if we use the existing token after destroyCredentials() is called to call any rest endpoint, it appears that the token is still valid and was not revoked.
We also tried to use the REST JS API to create an identity manager using ArcGISIdentityManager.fromCredential() method (supplying the information from the Maps SDK for JS identity manager) then calling the signout() method on it. But still it results in the same behavior.
We even tried to manually call the /revokeToken (https://developers.arcgis.com/rest/users-groups-and-items/revoke-token.htm) rest end point, which also does nothing.
Is there a way to revoke the user's tokens after logout?