소스 검색

Modification du nombre d'heure de validité du jeton

Loquicom 5 년 전
부모
커밋
28f6594c5b
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      node/src/auth.js

+ 1 - 1
node/src/auth.js

@@ -2,7 +2,7 @@ var token = require('token');
 var bcrypt = require('bcryptjs');
 
 // Parametrage token
-token.defaults.timeStep = 60 * 60 // Validité de une heure en seconde
+token.defaults.timeStep = 60 * 60 * 12 // Validité de 12 heures en seconde
 
 //Sync
 console.log('sync', bcrypt.compareSync('azerty', '$2y$10$IcQ32uKzQawg8g.kYuR/O.4y1kTSPHG0eZSMjACJKuFGa1VHM97Lu'));