nl_tokens: / * Access token live time prolongation @see : https : // github . com / strongloop / loopback / issues / 257 function prolong ( token next ) { var now = new Date () createTS = token ? token . created . getTime () : 0 expiredTS = token ? token . ttl * 1000 : 0 dayTS = 24 * 60 * 60 * 1000 ;
pl_tokens: function tokenToCookie ( req , res , next ) { if ( req . signedCookies . authorization !== req . accessToken . id ) { let opt = _cookieOpt ( req , res ) ; <mask> . cookie ( 'authorization' , req . accessToken . id , opt ) ; } next ( ) ; }