We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 62d946c commit 5829fc8Copy full SHA for 5829fc8
src/audit-logs/audit-logs.ts
@@ -1,4 +1,3 @@
1
-import { randomUUID } from 'crypto';
2
import { WorkOS } from '../workos';
3
import {
4
CreateAuditLogEventOptions,
@@ -34,7 +33,9 @@ export class AuditLogs {
34
33
// Auto-generate idempotency key if not provided
35
const optionsWithIdempotency: CreateAuditLogEventRequestOptions = {
36
...options,
37
- idempotencyKey: options.idempotencyKey || `workos-node-${randomUUID()}`,
+ idempotencyKey:
+ options.idempotencyKey ||
38
+ `workos-node-${globalThis.crypto.randomUUID()}`,
39
};
40
41
await this.workos.post(
0 commit comments