function generateCookieVal()

in Modules/common.js [49:57]


function generateCookieVal() {
    //Generate cookie
    var date = new Date();
     // Valid for 5 minutes
    date.setTime(+ date + (3000)); // 5 \* 60 \* 100
    var cookieVal = Math.random().toString(36).substring(7);
    
    return "myCookie="+cookieVal+"; HttpOnly; Secure; SameSite=Strict; Domain=" + process.env.CODE_VERIFICATION_URI + "; Expires="+date.toGMTString()+";";
}