UNPKG

@better-auth/utils

Version:

A collection of utilities for better-auth

11 lines (8 loc) 306 B
'use strict'; 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"); } exports.getWebcryptoSubtle = getWebcryptoSubtle;