Skip to content

Commit 4f71e77

Browse files
committed
chore(auth): fix lint warnings
1 parent 52e33d9 commit 4f71e77

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/service/passport/oidc.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const configure = async () => {
2626
});
2727

2828
// currentUrl must be overridden to match the callback URL
29-
strategy.currentUrl = (request) => {
29+
strategy.currentUrl = function (request) {
3030
const callbackUrl = new URL(callbackURL);
3131
const currentUrl = Strategy.prototype.currentUrl.call(this, request);
3232
currentUrl.host = callbackUrl.host;
@@ -62,13 +62,13 @@ module.exports.configure = configure;
6262

6363
/**
6464
* Handles user authentication with OIDC.
65-
* @param userInfo the OIDC user info object
66-
* @param done the callback function
67-
* @returns a promise with the authenticated user or an error
65+
* @param {Object} userInfo the OIDC user info object
66+
* @param {Function} done the callback function
67+
* @return {Promise} a promise with the authenticated user or an error
6868
*/
6969
const handleUserAuthentication = async (userInfo, done) => {
7070
try {
71-
let user = await db.findUserByOIDC(userInfo.sub);
71+
const user = await db.findUserByOIDC(userInfo.sub);
7272

7373
if (!user) {
7474
const email = safelyExtractEmail(userInfo);

0 commit comments

Comments
 (0)