glow_auth

Types

A client credentials with an id and secret.

Use the ‘site’ to set a base Uri, perhaps useful when token and auth uri’s are relative.

pub type Client(body) {
  Client(id: String, secret: String, site: uri.Uri)
}

Constructors

  • Client(id: String, secret: String, site: uri.Uri)

Values

pub fn authorization_header(
  r: request.Request(body),
  token: String,
) -> request.Request(body)

Prepend an access token as an authorization header bearer token

Search Document