LINEDevelopers.LoginAPISpec behaviour (line_developers v0.1.2)

Link to this section Summary

Link to this section Callbacks

Link to this callback

profile!(access_token)

@callback profile!(access_token :: String.t()) ::
  {:ok, {status :: integer(), body :: map(), headers :: list()}}
  | {:error, {status :: integer(), body :: map(), headers :: list()}}
Link to this callback

verify_access_token!(access_token)

@callback verify_access_token!(access_token :: String.t()) ::
  {:ok, {status :: integer(), body :: map(), headers :: list()}}
  | {:error, {status :: integer(), body :: map(), headers :: list()}}
Link to this callback

verify_id_token!(id_token, client_id)

@callback verify_id_token!(id_token :: String.t(), client_id :: String.t()) ::
  {:ok, {status :: integer(), body :: map(), headers :: list()}}
  | {:error, {status :: integer(), body :: map(), headers :: list()}}