clean up things

This commit is contained in:
Dzmitry_Tamashevich@epam.com
2020-11-24 22:40:15 +03:00
committed by Daniel Hutzel
parent 6454019713
commit 58af1879f7
24 changed files with 256 additions and 278 deletions

View File

@@ -3,8 +3,8 @@ const jwt = require("jsonwebtoken");
const bcrypt = require("bcryptjs");
const { ACCESS_TOKEN_SECRET, REFRESH_TOKEN_SECRET } = cds.env;
const ACCESS_TOKEN_EXP_IN = "10m";
const REFRESH_TOKEN_EXPIRES_IN = "20m";
const ACCESS_TOKEN_EXP_IN = "10s";
const REFRESH_TOKEN_EXPIRES_IN = "16s";
const comparePasswords = async (password, hashedPassword) => {
return new Promise((resolve, reject) =>