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

Check if $tokenable is valid by checking whether it implements HasApiTokens contract #515

Conversation

Ilyes512
Copy link

@Ilyes512 Ilyes512 commented May 12, 2024

Check if $tokenable is valid by checking whether it implements HasApiTokens contract instead of checking the specific (trait) implementation.

This relates to #506.

If this is acceptable, with or without more changes, it would also require an update to the docs page. This is because you would have to explicitly implement the HasApiTokens-interface and not just use the HasApiTokens-trait.

@Ilyes512 Ilyes512 closed this May 12, 2024
@Ilyes512 Ilyes512 deleted the update-supports-token-logic-by-checking-contract branch May 12, 2024 15:59
@Ilyes512 Ilyes512 restored the update-supports-token-logic-by-checking-contract branch May 12, 2024 15:59
@Ilyes512 Ilyes512 reopened this May 12, 2024
@taylorotwell
Copy link
Member

Could be a breaking change.

@Ilyes512
Copy link
Author

@taylorotwell It definitely is. So are you saying "maybe" in the next major version? Or are you saying it's not even "worth" it (for now)?

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.

None yet

2 participants