Boruta.Oauth.Codes behaviour (Boruta core v0.2.1) View Source

Code context

Link to this section Summary

Link to this section Callbacks

Specs

create(
  params :: %{
    client: Boruta.Oauth.Client.t(),
    resource_owner: struct(),
    redirect_uri: String.t(),
    scope: String.t(),
    state: String.t()
  }
) :: code :: Boruta.Oauth.Token.t() | {:error, Ecto.Changeset.t()}

Specs

get_by(params :: [value: String.t(), redirect_uri: String.t()]) ::
  token :: Boruta.Oauth.Token | nil