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 () => {
26
26
} ) ;
27
27
28
28
// currentUrl must be overridden to match the callback URL
29
- strategy . currentUrl = ( request ) => {
29
+ strategy . currentUrl = function ( request ) {
30
30
const callbackUrl = new URL ( callbackURL ) ;
31
31
const currentUrl = Strategy . prototype . currentUrl . call ( this , request ) ;
32
32
currentUrl . host = callbackUrl . host ;
@@ -62,13 +62,13 @@ module.exports.configure = configure;
62
62
63
63
/**
64
64
* 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
68
68
*/
69
69
const handleUserAuthentication = async ( userInfo , done ) => {
70
70
try {
71
- let user = await db . findUserByOIDC ( userInfo . sub ) ;
71
+ const user = await db . findUserByOIDC ( userInfo . sub ) ;
72
72
73
73
if ( ! user ) {
74
74
const email = safelyExtractEmail ( userInfo ) ;
You can’t perform that action at this time.
0 commit comments