diff --git a/packages/plugins/users/src/jwt-service.ts b/packages/plugins/users/src/jwt-service.ts index aa16df629..cee942485 100644 --- a/packages/plugins/users/src/jwt-service.ts +++ b/packages/plugins/users/src/jwt-service.ts @@ -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() {