mirror of
https://github.com/docmost/docmost.git
synced 2025-11-12 15:02: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,
|
||||
type: JwtType.REFRESH,
|
||||
};
|
||||
const expiresIn = '30d'; // todo: fix
|
||||
const expiresIn = this.environmentService.getJwtTokenExpiresIn();
|
||||
return this.jwtService.sign(payload, { expiresIn });
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user