nicholastay / passport-discord

Passport strategy for authentication with Discord (discordapp.com)
ISC License
172 stars 55 forks source link

Allow setting value for `prompt` #20

Closed katlyn closed 4 years ago

katlyn commented 4 years ago

Discord's OAuth has a parameter prompt which allows you to control if a user is displayed the consent screen or not.

prompt controls how the authorization flow handles existing authorizations. If a user has previously authorized your application with the requested scopes and prompt is set to consent, it will request them to reapprove their authorization. If set to none, it will skip the authorization screen and redirect them back to your redirect URI without requesting their authorization.

Allowing devs to set this value would be useful for websites that might have frequent traffic from consistent users.

thewilloftheshadow commented 4 years ago

Support. I really need this for my own application

PLASMAchicken commented 4 years ago

If it's so important, make a Pull Request, otherwise stop spamming the Comments thanks.

nicholastay commented 4 years ago

Resolved with #21