This PR updates getWebCrypto() to access globalThis.crypto exclusively since Node 20 supports this as a stable API access points. No attempts are made to import from node:crypto anymore.
This is a smaller PR because getWebCrypto() remains asynchronous. No breaking API changes are made as a result of this work.
This PR updates
getWebCrypto()
to accessglobalThis.crypto
exclusively since Node 20 supports this as a stable API access points. No attempts are made to import fromnode:crypto
anymore.This is a smaller PR because
getWebCrypto()
remains asynchronous. No breaking API changes are made as a result of this work.Fixes https://github.com/MasterKale/SimpleWebAuthn/issues/532.