Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix using module.function deprecation warning. #105

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

crova
Copy link

@crova crova commented Jul 30, 2024

Hello there, how is it going?

First of all, thanks for the great library.

While bumping our project to elixir 1.17 we got the following deprecation warning:

warning: using module.function() notation (with parentheses) to fetch map field :__struct__ is deprecated, you must remove the parentheses: map.field
  (ex_oauth2_provider 0.5.7) lib/ex_oauth2_provider/mixin/expirable.ex:45: ExOauth2Provider.Mixin.Expirable.is_expired?/1
  (ex_oauth2_provider 0.5.7) lib/ex_oauth2_provider/access_tokens/access_tokens.ex:234: ExOauth2Provider.AccessTokens.is_accessible?/1
  (ex_oauth2_provider 0.5.7) lib/ex_oauth2_provider.ex:86: ExOauth2Provider.validate_access_token/1
  (ex_oauth2_provider 0.5.7) lib/ex_oauth2_provider.ex:58: ExOauth2Provider.authenticate_token/2
  (ex_oauth2_provider 0.5.7) lib/ex_oauth2_provider/plug/verify_header.ex:78: ExOauth2Provider.Plug.VerifyHeader.verify_token/4

This takes care of it.

Let me know if you see any issues.

Cheers.

@heroinbob
Copy link

@danschultzer is there any chance of this getting merged and released?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants