Skip to main content

token

Function token 

Source
pub(crate) async fn token(
    services: &Services,
    user_id: &UserId,
    device_id: &DeviceId,
    expires: u64,
) -> Result<Token>
Expand description

Reads the token a device holds here and classifies its stored value against the recorded expiry.

Both point reads are made as this is called, so a pass calling it once per row decides each row against its own earlier writes. Only a failed read is an error.