mirror of
https://github.com/team-alembic/ash_authentication.git
synced 2024-09-19 12:52:55 +12:00
Fail fast when misconfigured 🧨 (#442)
This commit is contained in:
parent
04a773ec27
commit
857aaa3f1e
1 changed files with 3 additions and 2 deletions
|
@ -80,8 +80,9 @@ defmodule MyApp.Secrets do
|
|||
|
||||
defp get_config(key) do
|
||||
:my_app
|
||||
|> Application.get_env(:auth0, [])
|
||||
|> Keyword.fetch(key)
|
||||
|> Application.fetch_env!(:auth0)
|
||||
|> Keyword.fetch!(key)
|
||||
|> then(&{:ok, &1})
|
||||
end
|
||||
end
|
||||
```
|
||||
|
|
Loading…
Reference in a new issue