Skip to content

Commit

Permalink
make expiration of jwt smaller than cookie
Browse files Browse the repository at this point in the history
  • Loading branch information
juandans01 committed Jul 15, 2022
1 parent c5321f2 commit b41f9f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/auth/services/generate-token.auth.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export class GenerateTokenAuthService implements IGenerateTokenAuthService {
async execute(user: ReadUserDto): Promise<JWTResponse> {
const payload: JWTPayload = { userId: user.id };
return {
access_token: this.jwtService.sign(payload, { expiresIn: '1d' }),
access_token: this.jwtService.sign(payload, { expiresIn: '23h' }),
};
}
}

0 comments on commit b41f9f0

Please sign in to comment.