Skip to main content

validate_session_token

Function validate_session_token 

Source
pub fn validate_session_token(
    sessions_dir: &Path,
    session_id: &str,
    provided_token: &str,
) -> bool
Expand description

Validate that a provided token matches the stored token for a session Returns true if tokens match, false if they don’t match or no token exists