File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 */
7777const getAuthMethods = ( ) => {
7878 if ( _userSettings !== null && _userSettings . authentication ) {
Original file line number Diff line number Diff 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 */
6969const 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 ) ;
You can’t perform that action at this time.
0 commit comments