From 8db398548efb06f170ce2676d79a6d4b7492b422 Mon Sep 17 00:00:00 2001 From: Mike Zornek Date: Wed, 12 Jul 2023 14:27:16 -0400 Subject: [PATCH] Update client.ex Fix attribute variable name to be more explicit that we expect the `Client` schema type. --- lib/oauth2/client.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/oauth2/client.ex b/lib/oauth2/client.ex index 97d7f31..59beb12 100644 --- a/lib/oauth2/client.ex +++ b/lib/oauth2/client.ex @@ -318,7 +318,7 @@ defmodule OAuth2.Client do """ @spec refresh_token(t, params, headers, Keyword.t()) :: {:ok, Client.t()} | {:error, Response.t()} | {:error, Error.t()} - def refresh_token(token, params \\ [], headers \\ [], opts \\ []) + def refresh_token(client, params \\ [], headers \\ [], opts \\ []) def refresh_token(%Client{token: %{refresh_token: nil}}, _params, _headers, _opts) do {:error, %Error{reason: "Refresh token not available."}}