Hello @happy-eve-92047
Ory Hydra does not directly handle the storage of access tokens. Instead, it issues tokens and manages their metadata. The actual storage and management of these tokens, including associating them with users, is typically handled by the application using Ory Hydra.
When it comes to validating tokens, Ory Hydra provides an introspection endpoint. This endpoint can be used to check if a token is active (i.e., not expired and not revoked). The introspection endpoint returns the metadata associated with the token, such as the client ID, granted scopes, subject, and expiry time. This information can be used to validate the token and determine the associated user and their permissions.
As for revoking tokens, Ory Hydra provides a revocation endpoint. This endpoint can be used to revoke a token, which will make it inactive and cause subsequent introspection requests for that token to indicate that it is not active.
If you're using access tokens for session management, the storage method would depend on your application. For example, you might store the token in a secure cookie or in local storage on the client side. However, it's important to note that Ory does not recommend using access and refresh tokens for session management. Instead, they recommend using Ory Session Cookies or Ory Session Tokens, depending on whether the interaction is performed through a web browser or a non-browser client.