Skip to main content

Module token

Module token 

Source

Structs§

TokenEntry

Functions§

generate_token
Generates a fresh opaque bearer token. Returns the raw token (given to the caller once) and the entry to persist, keyed by sha256(token).
hash_token
lookup_token
Looks up a token, treating an expired entry as absent.
renew_token
revoke_token
store_token