Skip to main content

Module api_token

Module api_token 

Source

Functions§

create_token
Create a new API token. Returns the raw token string (shown once) and the stored record.
list_tokens
List all API tokens (without exposing hashes).
revoke_token
Revoke (delete) an API token by ID.
validate_token
Validate a raw token string. Returns the token record if valid and not expired.