浏览代码

feat: skip discord authorization screen (#949)

Tiemen 5 年之前
父节点
当前提交
e184fed8ee
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      server/modules/authentication/discord/authentication.js

+ 1 - 0
server/modules/authentication/discord/authentication.js

@@ -13,6 +13,7 @@ module.exports = {
       new DiscordStrategy({
         clientID: conf.clientId,
         clientSecret: conf.clientSecret,
+        authorizationURL: 'https://discordapp.com/api/oauth2/authorize?prompt=none',
         callbackURL: conf.callbackURL,
         scope: 'identify email'
       }, async (accessToken, refreshToken, profile, cb) => {