def secret_for([:authentication, :strategies, :auth0, :redirect_uri], Red.Accounts.User, _) do
get_config(:redirect_uri)
|> dbg()
end
Which showed me this:
get_config(:redirect_uri) #=> :error
Only here did I realize I made the mistake of saving the wrong key in my config file redirect_url
What I think should happen, is that if my secret_for function does not return the correct type, a helpful error is raised, letting me know what I returned.
Trying to set up Auth0 using this guide I got to the login error page, but no errors were raised.
Here is the reason from the
AuthController
:Eventually I tried this:
Which showed me this:
get_config(:redirect_uri) #=> :error
Only here did I realize I made the mistake of saving the wrong key in my config file
redirect_url
What I think should happen, is that if my
secret_for
function does not return the correct type, a helpful error is raised, letting me know what I returned.