View Source Ueberauth.Strategy.Amco.API (ueberauth_amco v0.5.0)
Link to this section Summary
Functions
Gets authorization's claims based on an access token. The claims will depend on the scope that was used in the authorization process.
Link to this section Functions
Gets authorization's claims based on an access token. The claims will depend on the scope that was used in the authorization process.
parameters
Parameters
- access_token: String [Access token generated by the IdP].
examples
Examples
iex> userinfo("bGWcAKadGrBwM...")
{:ok, %{email: "test@example", phone_number: "+523344556677"}}
iex> userinfo("InvalidAccessToken")
{:error, :invalid}