yasuki_core.accounts.oauth_state#

Functions

pop_login(conn, state, max_age)

Consume the login state for state, or None if absent or older than max_age.

purge_stale_logins(conn, max_age)

Delete abandoned login rows older than max_age; return how many were removed.

stash_login(conn, state, nonce, code_verifier)

Record the in-flight OAuth state for a login, to be consumed at the callback.