Skip to content

Commit e0fe2e6

Browse files
fix ESlint fails
1 parent 255d886 commit e0fe2e6

2 files changed

Lines changed: 8 additions & 9 deletions

File tree

api/server/controllers/AuthController.js

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -175,14 +175,13 @@ const refreshController = async (req, res) => {
175175
return res.status(200).send('Refresh token not provided');
176176
}
177177

178-
const openIdConfig =
179-
token_provider === 'solid' ? getSolidOpenIdConfig() : getOpenIdConfig();
180-
const refreshParams =
181-
token_provider === 'solid' && process.env.SOLID_OPENID_SCOPE
182-
? { scope: process.env.SOLID_OPENID_SCOPE }
183-
: process.env.OPENID_SCOPE
184-
? { scope: process.env.OPENID_SCOPE }
185-
: {};
178+
const openIdConfig = token_provider === 'solid' ? getSolidOpenIdConfig() : getOpenIdConfig();
179+
let refreshParams = {};
180+
if (token_provider === 'solid' && process.env.SOLID_OPENID_SCOPE) {
181+
refreshParams = { scope: process.env.SOLID_OPENID_SCOPE };
182+
} else if (process.env.OPENID_SCOPE) {
183+
refreshParams = { scope: process.env.OPENID_SCOPE };
184+
}
186185

187186
const sent = await performOpenIDRefresh(req, res, openIdConfig, refreshToken, refreshParams);
188187
if (sent) return;

api/server/socialLogins.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ const {
1717
const { getLogStores } = require('~/cache');
1818

1919
/**
20-
* Configures Solid OpenID Connect for the application.
20+
* Configures Solid OpenID Connect for the application.
2121
* @param {Express.Application} app - The Express application instance.
2222
* @returns {Promise<void>}
2323
*/

0 commit comments

Comments
 (0)