feat: customizable jwt expiration date
This commit is contained in:
parent
21619f53c5
commit
c9483254fa
@ -9,7 +9,7 @@ export class JwtService {
|
|||||||
constructor(protected options: JwtOptions) {}
|
constructor(protected options: JwtOptions) {}
|
||||||
|
|
||||||
private expiresIn() {
|
private expiresIn() {
|
||||||
return this.options.expiresIn || '7d';
|
return this.options.expiresIn || process.env.JWT_EXPIRES_IN || '7d';
|
||||||
}
|
}
|
||||||
|
|
||||||
private secret() {
|
private secret() {
|
||||||
|
Loading…
Reference in New Issue
Block a user