|
|
@ -22,7 +22,7 @@ if (!JWT_SECRET) { |
|
|
|
const ISSUER = "sprinklers3"; |
|
|
|
const ISSUER = "sprinklers3"; |
|
|
|
|
|
|
|
|
|
|
|
const ACCESS_TOKEN_LIFETIME = 30 * 60; // 30 minutes
|
|
|
|
const ACCESS_TOKEN_LIFETIME = 30 * 60; // 30 minutes
|
|
|
|
const REFRESH_TOKEN_LIFETIME = 24 * 60 * 60; // 24 hours
|
|
|
|
const REFRESH_TOKEN_LIFETIME = 7 * 24 * 60 * 60; // 7 days
|
|
|
|
|
|
|
|
|
|
|
|
function signToken( |
|
|
|
function signToken( |
|
|
|
claims: tok.TokenClaimTypes, |
|
|
|
claims: tok.TokenClaimTypes, |
|
|
|