@camstack/system 1.1.30 → 1.1.31
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -5957,7 +5957,7 @@ var AuthManager = class {
|
|
|
5957
5957
|
}
|
|
5958
5958
|
signToken(payload) {
|
|
5959
5959
|
const configured = this.config.get("auth.tokenExpiry");
|
|
5960
|
-
const expiresIn = typeof configured === "string" && configured.trim() !== "" ? configured.trim() : "
|
|
5960
|
+
const expiresIn = typeof configured === "string" && configured.trim() !== "" ? configured.trim() : "7d";
|
|
5961
5961
|
return import_jsonwebtoken.sign({ ...payload }, this.jwtSecret, { expiresIn });
|
|
5962
5962
|
}
|
|
5963
5963
|
verifyToken(token) {
|
|
@@ -5984,7 +5984,7 @@ var AuthManager = class {
|
|
|
5984
5984
|
}
|
|
5985
5985
|
signToken(payload) {
|
|
5986
5986
|
const configured = this.config.get("auth.tokenExpiry");
|
|
5987
|
-
const expiresIn = typeof configured === "string" && configured.trim() !== "" ? configured.trim() : "
|
|
5987
|
+
const expiresIn = typeof configured === "string" && configured.trim() !== "" ? configured.trim() : "7d";
|
|
5988
5988
|
return import_jsonwebtoken.sign({ ...payload }, this.jwtSecret, { expiresIn });
|
|
5989
5989
|
}
|
|
5990
5990
|
verifyToken(token) {
|