ueberauth / guardian

Elixir Authentication
MIT License
3.4k stars 381 forks source link

Fix deprecation warnings based on 1.14 #712

Closed akiehm-ggs closed 1 year ago

akiehm-ggs commented 1 year ago

Similar to this PR: #702, when adding use Guardian, otp_app: :api to a module, we see the same warning:

warning: Application.get_env/3 is discouraged in the module body, use Application.compile_env/3 instead

Also mix compile --force --warnings-as-errors is a requirement for our CI pipeline.

yordis commented 1 year ago

I am so confused. That doesn't sound like the same code to me thou. Are you sure this will allow you to do the same as before?

akiehm-ggs commented 1 year ago

After further investigation, we are no longer seeing the issue. Thanks for the quick reply!