View Source ExOauth2Provider.Token.RefreshToken (ExOauth2Provider v0.5.7)
Functions for dealing with refresh token strategy.
Summary
Functions
Will grant access token by refresh token.
Functions
Will grant access token by refresh token.
Example
ExOauth2Provider.Token.authorize(%{
"grant_type" => "refresh_token",
"client_id" => "Jf5rM8hQBc",
"client_secret" => "secret",
"refresh_token" => "1jf6a"
}, otp_app: :my_app)
Response
{:ok, access_token}
{:error, %{error: error, error_description: description}, http_status}