From 832a95bf7917943c26803ad65c04feffa6e8b977 Mon Sep 17 00:00:00 2001 From: Alexander Mokrov <13138763+sanyappc@users.noreply.github.com> Date: Mon, 9 Sep 2024 13:13:34 +0300 Subject: [PATCH] fix: rocket.chat 6 auth requires state --- server/modules/authentication/rocketchat/authentication.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/modules/authentication/rocketchat/authentication.js b/server/modules/authentication/rocketchat/authentication.js index c966326ee6..9b21ece8ae 100644 --- a/server/modules/authentication/rocketchat/authentication.js +++ b/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({