midas/sdk/google

Types

pub type App {
  App(client_id: String, redirect_uri: String)
}

Constructors

  • App(client_id: String, redirect_uri: String)

Functions

pub fn auth_redirect(
  redirect: Uri,
) -> Result(#(String, String, String), String)
pub fn authenticate(
  app: App,
  scopes: List(String),
) -> Effect(String)
pub fn userinfo(token: String) -> Effect(String)
pub fn userinfo_request(token: String) -> Request(BitArray)
pub fn userinfo_response(
  response: Response(BitArray),
) -> Result(String, Snag)
Search Document