Skip to main content

resolve_carriers

Function resolve_carriers 

Source
pub fn resolve_carriers(
    connection: &mut PgConnection,
    carriers: &ActorCarriers,
) -> Option<String>
Expand description

Resolves ActorCarriers to an owner: the bearer token against the configured admin tokens, the session cookie against the sessions table (hence the connection). The token wins if both are present (an explicit API credential is the more specific intent). None if neither resolves.