Consumes a token.
Consumes a token.
This method makes the token unavailable for further use. It's up to the implementation how to do that. For example, the token can be deleted, updated as "consumed", moved to another table, etc.
Consumed tokens can't be retrieved.
The ID of the token to consume.
Creates a new token.
Creates a new token.
The new token will be persisted so that later it can be retrieved by its ID.
The token to create.
The created token or None if the token couldn't be created.
Retrieves an available token.
Retrieves an available token.
The token ID.
The retrieved token or None if no token could be retrieved for the given ID.
A trait that provides the means to handle auth tokens for the Silhouette module.
Tokens are needed for users that are creating an account in the system instead of using one in a third-party system.