Skip to content

Commit

Permalink
Small Fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
maennchen committed Sep 14, 2023
1 parent 6809cc4 commit 0175e55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/oidcc.ex
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ defmodule Oidcc do
opts :: :oidcc_token.refresh_opts_no_sub()
) ::
{:ok, Oidcc.Token.t()} | {:error, :oidcc_client_context.error() | :oidcc_token.error()}
def refresh_token(token, provider_configuration_name, client_id, client_secret, opts) do
def refresh_token(token, provider_configuration_name, client_id, client_secret, opts \\ %{}) do
token =
case token do
%Oidcc.Token{} = token -> Oidcc.Token.struct_to_record(token)
Expand Down
4 changes: 2 additions & 2 deletions src/oidcc_token.erl
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@
#{
scope => oidcc_scope:scopes(),
refresh_jwks => oidcc_jwt_util:refresh_jwks_for_unknown_kid_fun(),
expected_subject := binary()
request_opts => oidcc_http_util:request_opts()
}.
%% See {@link refresh_opts_no_sub()}

Expand Down Expand Up @@ -165,7 +165,7 @@
| sub_invalid
| token_expired
| token_not_yet_valid
| {none_alg_used, NoneClaims :: oidcc_jwt_util:claims()}
| {none_alg_used, Token :: t()}
| {missing_claim, ExpClaim :: {binary(), term()}, Claims :: oidcc_jwt_util:claims()}
| {grant_type_not_supported,
authorization_code | refresh_token | jwt_bearer | client_credentials}
Expand Down

0 comments on commit 0175e55

Please sign in to comment.