TypeScript API / @laikacms/server/oauth2 / RuntimeProbe
Interface: RuntimeProbe
Immutable snapshot of the ambient runtime's cryptographic capabilities. Captured once via captureRuntimeProbe; injectable for tests.
Properties
hasCrypto
ts
readonly hasCrypto: boolean;globalThis.crypto exists.
hasGetRandomValues
ts
readonly hasGetRandomValues: boolean;crypto.getRandomValues exists and is a function.
hasSubtle
ts
readonly hasSubtle: boolean;crypto.subtle exists.
isSecureContext
ts
readonly isSecureContext: boolean | undefined;globalThis.isSecureContext when the runtime defines it as a boolean; undefined on server runtimes — detectors must NOT fire on undefined.
nodeMajor
ts
readonly nodeMajor: number | undefined;Node.js major version, or undefined when not running on Node.
randomSampleA
ts
readonly randomSampleA: string | undefined;Hex of 32 random bytes, undefined if a sample could not be taken.
randomSampleB
ts
readonly randomSampleB: string | undefined;A second, independent 32-byte random sample (hex), or undefined.