Skip to content

Commit 2ed4db3

Browse files
committed
fix(config/runtime): add issuer for guardian_config in :prod
without this config, guardian redis completely breaks and it is ~~impossible~~ very difficult to trace where the issue came from ``` ** (KeyError) key :wheres not found in: #Ecto.Changeset<action: nil, changes: %{claims: %{"aud" => "" ... ``` the telltale issue here being the `"aud" => ""` rather than `t0.aud == ^"EpochtalkServer" ` like you would see if debugging a working instance
1 parent c1663ac commit 2ed4db3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

config/runtime.exs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,7 @@ guardian_config =
117117
case config_env() do
118118
:prod ->
119119
[
120+
issuer: "EpochtalkServer",
120121
secret_key:
121122
get_env_or_raise_with_message.(
122123
"GUARDIAN_SECRET_KEY",

0 commit comments

Comments
 (0)