(bytes = 32)
| 57 | } |
| 58 | |
| 59 | function randomBase64Url(bytes = 32): string { |
| 60 | return crypto.randomBytes(bytes).toString("base64url"); |
| 61 | } |
| 62 | |
| 63 | function isPlainObject(value: unknown): value is Record<string, unknown> { |
| 64 | return Boolean(value) && typeof value === "object" && !Array.isArray(value); |
no outgoing calls
no test coverage detected