Closed Quentin-Danjou closed 9 months ago
need this
Can you please merge this and release a new version? passport-spotify
has issues.
@jaredhanson is there anything I can do so we can merge this?
We need this as well 🙏
Please
Please, can we get this one merged? It would be extremely helpful 🙏
@jaredhanson can we get this merged?
@pablomusumeci Here's a fork by @serniebanders: "You can use this as a dependency: git+https://github.com/serniebanders/passport-google-oauth2.git"
@cjezinne thanks! Although, relying on an unofficial fork is not a future-proof solution 😢
For anyone else with this issue, I've found a workaround to force passport-oauth2
to use oauth@0.10.0
by adding an override into my project's package.json
:
"overrides": {
"oauth": "~0.10.0"
}
When the node_modules were deleted/reinstalled, passport-oauth2
was using version 0.10.0:
$ npm list oauth
server@1.0.0 /Users/.../webserver
└─┬ passport-oauth2@1.6.1
└── oauth@0.10.0
Just keep in mind that this code should be removed if passport-oauth2
is ever upgraded in future to use a higher version of oauth, e.g 0.11.0 which currently doesn't exist.
@rjenkin you are the man
@jaredhanson please merge this PR
For anyone else with this issue, I've found a workaround to force
passport-oauth2
to useoauth@0.10.0
by adding an override into my project'spackage.json
:"overrides": { "oauth": "~0.10.0" }
When the node_modules were deleted/reinstalled,
passport-oauth2
was using version 0.10.0:$ npm list oauth server@1.0.0 /Users/.../webserver └─┬ passport-oauth2@1.6.1 └── oauth@0.10.0
Just keep in mind that this code should be removed if
passport-oauth2
is ever upgraded in future to use a higher version of oauth, e.g 0.11.0 which currently doesn't exist.
Thanks a lot for this fix! For yarn
users, instead of overrides
you should use resolutions
. Also, if you are using yarn workspaces make sure to put this in the root package.json
Merged and published as passport-oauth2@1.8.0
. Thanks!
This is solving issues of
passport-google-oauth2
as stated in issue #163