🔥 initial commit 🔥
This commit is contained in:
12
lib/mixer/secrets.ex
Normal file
12
lib/mixer/secrets.ex
Normal file
@@ -0,0 +1,12 @@
|
||||
defmodule Mixer.Secrets do
|
||||
use AshAuthentication.Secret
|
||||
|
||||
def secret_for(
|
||||
[:authentication, :tokens, :signing_secret],
|
||||
Mixer.Accounts.User,
|
||||
_opts,
|
||||
_context
|
||||
) do
|
||||
Application.fetch_env(:mixer, :token_signing_secret)
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user