Skip to main content

find_active_feed_by_token

Function find_active_feed_by_token 

Source
pub fn find_active_feed_by_token(
    conn: &Connection,
    raw_token: &str,
) -> Result<Option<FeedRecord>, String>
Expand description

Looks a presented token up by its hash. Revoked feeds are excluded here rather than filtered by the caller, so a revoked token can never be reached by forgetting one check site.