mirror of https://github.com/certd/certd
chore: token expire
parent
2bcab76f5a
commit
3791d92d67
|
@ -1,5 +1,5 @@
|
||||||
import { env } from "./util.env";
|
import { env } from "./util.env";
|
||||||
function isNullOrUnDef(value) {
|
function isNullOrUnDef(value: any) {
|
||||||
return value == null;
|
return value == null;
|
||||||
}
|
}
|
||||||
const DEFAULT_CACHE_TIME = 60 * 60 * 24 * 7;
|
const DEFAULT_CACHE_TIME = 60 * 60 * 24 * 7;
|
||||||
|
|
|
@ -68,7 +68,7 @@ const development = {
|
||||||
auth: {
|
auth: {
|
||||||
jwt: {
|
jwt: {
|
||||||
secret: 'certd666',
|
secret: 'certd666',
|
||||||
expire: 7 * 24 * 60, //单位秒
|
expire: 7 * 24 * 60 * 60, //单位秒
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
certd: {
|
certd: {
|
||||||
|
|
Loading…
Reference in New Issue