Skip to main content

from_admin_secret

Function from_admin_secret 

Source
pub fn from_admin_secret(
    config: &HasuraAuthConfig,
    headers: &[(&str, &str)],
) -> SecretOutcome
Expand description

Settle what the admin secret says about a request.

headers is a slice of name/value pairs rather than any particular header map, which is what lets this crate settle the question without depending on an HTTP library. It is walked more than once.