From b38f8dbdab4f629bd652a24d0af4ecfa9bd4c2f6 Mon Sep 17 00:00:00 2001 From: Peter Saxton Date: Fri, 17 Jan 2020 09:16:45 +0000 Subject: [PATCH] Ensure provider configs are a list --- lib/openid_connect/worker.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/openid_connect/worker.ex b/lib/openid_connect/worker.ex index 1b73484..d6a4578 100644 --- a/lib/openid_connect/worker.ex +++ b/lib/openid_connect/worker.ex @@ -9,7 +9,7 @@ defmodule OpenIDConnect.Worker do @refresh_time 60 * 60 * 1000 - def start_link(provider_configs, name \\ :openid_connect) do + def start_link(provider_configs, name \\ :openid_connect) when is_list(provider_configs) do GenServer.start_link(__MODULE__, provider_configs, name: name) end