server/routes/sc-connect-api.js
// Generates a JWT with the given information and an expiration date (one month from now). Signed with the app's secret using the (HMAC SHA256) algorithm.
Generates a JWT with the given information and an expiration date (one month from now). Signed with the app's secret using the (HMAC SHA256) algorithm.
Generates a JWT with the given information and an expiration date ( one month from now ) . Signed with the app ' s secret using the ( HMAC SHA256 ) algorithm .
function generateSignedJWT(uuid, userID) {
    var expiresDateInSeconds = Math.floor(Date.now() / 1000) + (60 * 60 * 24 * 31); 
    var payload = {
        uuid: uuid,
        userID: userID,
        exp: expiresDateInSeconds
    };
    return jwt.sign(payload, jwtConfig.secret);
}
function generateSignedJWT ( uuid , userID ) { var expiresDateInSeconds = Math . floor ( Date . now ( ) / 1000 ) + ( 60 * 60 * 24 * 31 ) ; var payload = { uuid : uuid , userID : userID , exp : expiresDateInSeconds } ; return jwt . sign ( payload , jwtConfig . secret ) ; }
Generates a JWT with the given information and an expiration date (one month from now).
Generates a JWT with the given information and an expiration date ( one month from now ) .
//one month ahead of now in seconds