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)
}

Constructors

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

Functions

pub fn authorization_header(token: String, r: Request(a)) -> Request(
  a,
)

Prepend an access token as an authorization header bearer token