On calling signOut()
method, session tokens like id token and access token are just removed from the localstorage. We are using Auth class from aws-amplify:
https://aws-amplify.github.io/amplify-js/api/classes/authclass.html
Auth.signOut()
.then(() => {
})
.catch(err => { logger.debug(err); this.error(err); });
They are still valid for the lifecycle of the token (by default for 1 hour). How can we explicitly invalidate id token and access token so that any intruder can't get hold of these and make API calls. If anyone has idea on this please let me know.
thanks