Skip to main content

load_token

Function load_token 

Source
pub async fn load_token(
    connection: &Connection,
    token_hash: &str,
) -> Result<Option<TokenRow>>
Expand description

The credential with this hash and all its grants, in one query; None when no such credential exists.

Decodes fail-closed, since defaulting revoked or expires_at after a schema drift would turn a dead key live; raw values are read because libsql 0.6’s typed row.get panics on a type mismatch.