jaredhanson / passport-oauth2

OAuth 2.0 authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-oauth2/?utm_source=github&utm_medium=referral&utm_campaign=passport-oauth2&utm_content=about
MIT License
607 stars 343 forks source link

make authorizationURL optional? #119

Open bhubr opened 4 years ago

bhubr commented 4 years ago

Node.js is widely used as a backend for SPAs. SPAs that use an OAuth2 flow usually open a popup with the authorization URL. So the whole authorization part is handled client-side.

I think it should be possible to make the authorizationURL optional, since in the case of SPAs, it's of no use on the server.