Closed gobengo closed 2 years ago
I was wondering if it made sense to pass req
to #authorizationParams
; this would allow you to specify prompt
, ui_locales
and login_hint
based on properties of the request, which makes sense in my mind.
Also, I notice this library hasn't had a commit in 2 years, while passport-oauth2 has seen a bit more action. Given how similar the strategies are, would it make sense to have this one inherit from the other?
The functionality in this PR has been implemented in the master branch at some point between now and when this PR was opened. Thanks, closing.
I am using this library and found this changeset useful.
#authorizationParams
to specifyprompt
.authenticate({ state })
to embed a destination redirect_uri in stateAre you accepting PRs? I can also make a PR to remove unnecessary console.logs. If you'd prefer a fork, I'll do that too.