Browse Source

fix: rocket.chat 6 auth requires state

pull/7342/head
Alexander Mokrov 9 months ago
committed by GitHub
parent
commit
832a95bf79
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions
  1. 3
      server/modules/authentication/rocketchat/authentication.js

3
server/modules/authentication/rocketchat/authentication.js

@ -40,7 +40,8 @@ module.exports = {
clientID: conf.clientId,
clientSecret: conf.clientSecret,
callbackURL: conf.callbackURL,
passReqToCallback: true
passReqToCallback: true,
state: true
}, async (req, accessToken, refreshToken, profile, cb) => {
try {
const user = await WIKI.models.users.processProfile({

Loading…
Cancel
Save