prefect.server.models.csrf_token
Functions
create_or_update_csrf_token
session
: The database sessionclient
: The client identifier
- core.CsrfToken: The CSRF token
read_token_for_client
session
: The database sessionclient
: The client identifier
- Optional[core.CsrfToken]: The CSRF token, if it exists and is not expired.
delete_expired_tokens
session
: The database session
- The number of tokens deleted