nl_tokens: set cookies
pl_tokens: function setCookies ( req , res , session , cb ) { const now = new Date ( ) ; // Set cookies res . cookie ( 'na_session' , AES . encrypt ( session . _id . toString ( ) ) , { maxAge : 1000 * 60 * 15 , // 15 mins httpOnly : true , secure : opts . secure } ) ; <mask> . cookie ( 'na_user' , AES . encrypt ( session . user ) , { maxAge : 1000 * 60 * 60 * 24 * 365 , // 1 year httpOnly : true , secure : opts . secure } ) ; cb ( null , req , res , session ) ; if ( opts . log_all ) log . timer ( 'setCookies' , now ) ; }