Skip to content

Commit 291c179

Browse files
committed
fix(auth): fix linter issues
1 parent b58d3a8 commit 291c179

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/config/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ const getDatabase = () => {
7272

7373
/**
7474
* Get the list of enabled authentication methods
75-
* @returns {Array} List of enabled authentication methods
75+
* @return {Array} List of enabled authentication methods
7676
*/
7777
const getAuthMethods = () => {
7878
if (_userSettings !== null && _userSettings.authentication) {

src/service/passport/oidc.js

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

3030
// currentUrl must be overridden to match the callback URL
31-
strategy.currentUrl = (request) => {
31+
strategy.currentUrl = function (request) {
3232
const callbackUrl = new URL(callbackURL);
3333
const currentUrl = Strategy.prototype.currentUrl.call(this, request);
3434
currentUrl.host = callbackUrl.host;
@@ -62,13 +62,13 @@ const configure = async () => {
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 {*} userInfo the OIDC user info object
66+
* @param {*} done the callback function
67+
* @return {Promise<void>} 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)