-
Notifications
You must be signed in to change notification settings - Fork 42
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: update token endpoints to non-deprecated endpoints #466
base: main
Are you sure you want to change the base?
Conversation
Both of the endpoints changed in this PR are marked as I also cleaned up some unused variables in tests that were giving linter warnings. |
Marking |
src/index.ts
Outdated
const GOOGLE_REVOKE_TOKEN_URL = | ||
'https://accounts.google.com/o/oauth2/revoke?token='; | ||
'https://oauth2.googleapis.com/token/revoke?token='; |
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.
where did you get this revoke url from?
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.
In the documentation it said that the revoke old url (accounts.google.com) was extremely deprecated
, so I browsed through the proto from the yaqs issue and saw revoke was in there.
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.
Got it. As long as it works, it should be ok.
29ae929
to
63799b9
Compare
const GOOGLE_TOKEN_URL = 'https://www.googleapis.com/oauth2/v4/token'; | ||
const GOOGLE_REVOKE_TOKEN_URL = | ||
'https://accounts.google.com/o/oauth2/revoke?token='; | ||
const GOOGLE_TOKEN_URL = 'https://oauth2.googleapis.com/token'; |
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.
const GOOGLE_REVOKE_TOKEN_URL = | ||
'https://accounts.google.com/o/oauth2/revoke?token='; | ||
const GOOGLE_TOKEN_URL = 'https://oauth2.googleapis.com/token'; | ||
const GOOGLE_REVOKE_TOKEN_URL = 'https://oauth2.googleapis.com/revoke?token='; |
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.
Thank you for opening a Pull Request! Before submitting your PR, there are a few things you can do to make sure it goes smoothly:
Fixes #388 🦕