mirror of
https://gitee.com/nocobase/nocobase.git
synced 2024-12-02 04:07:50 +08:00
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) {}
|
||||
|
||||
private expiresIn() {
|
||||
return this.options.expiresIn || '7d';
|
||||
return this.options.expiresIn || process.env.JWT_EXPIRES_IN || '7d';
|
||||
}
|
||||
|
||||
private secret() {
|
||||
|
Loading…
Reference in New Issue
Block a user