mirror of
https://github.com/docmost/docmost.git
synced 2025-11-12 23:42:37 +10:00
fix: use environment service for refresh token's expiration (#337)
This commit is contained in:
@ -31,7 +31,7 @@ export class TokenService {
|
|||||||
workspaceId,
|
workspaceId,
|
||||||
type: JwtType.REFRESH,
|
type: JwtType.REFRESH,
|
||||||
};
|
};
|
||||||
const expiresIn = '30d'; // todo: fix
|
const expiresIn = this.environmentService.getJwtTokenExpiresIn();
|
||||||
return this.jwtService.sign(payload, { expiresIn });
|
return this.jwtService.sign(payload, { expiresIn });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user