pub fn verify_token(
    request: &HttpRequest,
    config: &Data<Arc<Config>>
) -> AuthToken
Expand description

Verifies a session token extracted from an HTTP request against stored session mappings and configuration.

§Arguments

  • request - The HTTP request containing the session token in the form of a cookie.
  • config - The configuration settings containing session duration.

§Returns

Returns an AuthToken indicating the result of the token verification.