fix: use environment service for refresh token's expiration (#337)
This commit is contained in:
parent
9390b39e35
commit
e9e668bd39
1 changed files with 1 additions and 1 deletions
|
|
@ -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 });
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue