소스 검색

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) => {