UNPKG

@better-auth/utils

Version:

A collection of utilities for better-auth

9 lines (7 loc) 273 B
function getWebcryptoSubtle() { const cr = typeof globalThis !== "undefined" && globalThis.crypto; if (cr && typeof cr.subtle === "object" && cr.subtle != null) return cr.subtle; throw new Error("crypto.subtle must be defined"); } export { getWebcryptoSubtle };