-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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 typo in jwt package #1070
Fix typo in jwt package #1070
Conversation
amidam
commented
Mar 19, 2021
* change JWTTokenContextKey to JWTContextKey * revise errors as well as comments
fixes #1071 |
* revert the API identifier to its previous value * add JWTTokenContextKey side by side of JWTContextKey for historical compatibility
Can you please leave the old identifiers in place, and mark them as deprecated? |
* define JWTContextKey as a new constant * mark JWTTokenContextKey as a deprecated constant * revise corresponding error messages
# Conflicts: # auth/jwt/middleware.go
I have done it already. I added a new constant called |
Still they both have the same value |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
One minor thing then 👍
* define JWTContextKey as a new constant * mark JWTTokenContextKey as a deprecated constant * revise corresponding error messages
I have done it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM