Skip to content

Commit 4a1d6f2

Browse files
Update src/api/integrations/event/webhook/webhook.controller.ts
Co-authored-by: sourcery-ai[bot] <58596630+sourcery-ai[bot]@users.noreply.github.com>
1 parent 288a193 commit 4a1d6f2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/api/integrations/event/webhook/webhook.controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,8 +244,8 @@ export class WebhookController extends EventController implements EventControlle
244244
private generateJwtToken(authToken: string): string {
245245
try {
246246
const payload = {
247-
iat: Date.now() / 1000,
248-
exp: (Date.now() / 1000) + 600, // 10 min expiration
247+
iat: Math.floor(Date.now() / 1000),
248+
exp: Math.floor(Date.now() / 1000) + 600, // 10 min expiration
249249
app: 'evolution',
250250
action: 'webhook',
251251
};

0 commit comments

Comments
 (0)