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

Don't use a pointer to an interface #117

Merged
merged 1 commit into from
Sep 15, 2022
Merged

Don't use a pointer to an interface #117

merged 1 commit into from
Sep 15, 2022

Conversation

sethvargo
Copy link
Contributor

This is part of a cleanup for #116. In golang-jwt, Token is a struct. In jwx, it's an interface. Returning a pointer to an interface is generally frowned upon. This changes the interface to always be returned as an interface, but there needs to be a larger effort around reducing to a single jwt library.

This is part of a cleanup for #116. In golang-jwt, Token is a struct. In jwx, it's an interface. Returning a pointer to an interface is generally frowned upon. This changes the interface to always be returned as an interface, but there needs to be a larger effort around reducing to a single jwt library.
@sethvargo sethvargo requested review from yolocs and removed request for sqin2019 September 15, 2022 00:42
@sethvargo sethvargo merged commit db26d44 into main Sep 15, 2022
@sethvargo sethvargo deleted the sethvargo/ptr branch September 15, 2022 00:43
sqin2019 pushed a commit that referenced this pull request Apr 6, 2023
This is part of a cleanup for #116. In golang-jwt, Token is a struct. In jwx, it's an interface. Returning a pointer to an interface is generally frowned upon. This changes the interface to always be returned as an interface, but there needs to be a larger effort around reducing to a single jwt library.
verbanicm pushed a commit that referenced this pull request Jun 14, 2023
This is part of a cleanup for #116. In golang-jwt, Token is a struct. In jwx, it's an interface. Returning a pointer to an interface is generally frowned upon. This changes the interface to always be returned as an interface, but there needs to be a larger effort around reducing to a single jwt library.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants