File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff 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 */
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