PowAssent v0.1.0-alpha PowAssent.Strategy.Google View Source

Google OAuth 2.0 strategy.

Link to this section Summary

Link to this section Functions

Link to this function authorize_url(config, conn) View Source
authorize_url(Keyword.t(), Plug.Conn.t()) ::
  {:ok, %{conn: Plug.Conn.t(), url: String.t(), state: String.t()}}

Callback implementation for PowAssent.Strategy.authorize_url/2.

Link to this function callback(config, conn, params) View Source
callback(Keyword.t(), Plug.Conn.t(), map()) ::
  {:ok, %{conn: Plug.Conn.t(), user: map(), client: OAuth2.Client.t()}}
  | {:error, %{conn: Plug.Conn.t(), error: any()}}

Callback implementation for PowAssent.Strategy.callback/3.