Skip to main content

build_auth_token_at

Function build_auth_token_at 

Source
pub fn build_auth_token_at(
    now_unix_secs: i64,
    deadline_unix_secs: i64,
    account_index: i64,
    api_key_index: u8,
    sk: &PrivateKey,
    k: Scalar,
) -> Result<String, AuthTokenError>
Expand description

Variant of build_auth_token accepting an explicit now_unix_secs.

Pure of SystemTime, so callers can drive the validation deterministically from a wall-clock provider or a test fixture. Same error semantics as build_auth_token.

ยงErrors

See build_auth_token.