Use secret_key_base as token_signing_secret

I have the following code in lib/example/accounts/user.ex:

tokens do
  enabled? true
  token_resource Example.Accounts.Token
  signing_secret fn _, _ ->
    System.fetch_env("TOKEN_SIGNING_SECRET")
  end
end


Is there a way to use the secret_key_base which is already set in the Phoenix Application config instead of System.fetch_env("TOKEN_SIGNING_SECRET")?
Was this page helpful?