Skip to content

Commit 982b2ee

Browse files
fix: Shorten revalidate cycle for failed validation (#16)
1 parent d6eba22 commit 982b2ee

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/id_token_provider.erl

+2-2
Original file line numberDiff line numberDiff line change
@@ -76,8 +76,8 @@ handle_info({refresh, Provider}, State) ->
7676
(RevalidateTime - Now) * 1000;
7777
false ->
7878
%% Not enough time for revalidation, let the first request pay
79-
%% the price and re-initiate async_revalidate-loop after 60 seconds
80-
60_000
79+
%% the price and re-initiate async_revalidate-loop after 10 seconds
80+
10_000
8181
end,
8282
timer:send_after(Delay, self(), {refresh, Provider}),
8383
{noreply, State}.

0 commit comments

Comments
 (0)