TypeScript API / @laikacms/server/oauth2 / assertRuntimeSafetyAsync
Function: assertRuntimeSafetyAsync()
ts
function assertRuntimeSafetyAsync(input, probe?): Promise<void>;Asynchronous safety gate covering every when: 'first-request' reason (those that must await SubtleCrypto). Call it before serving the first request; rejects with UnsafeRuntimeError carrying all firing, unsuppressed codes at once.
Parameters
| Parameter | Type |
|---|---|
input | GateInput |
probe | RuntimeProbe |
Returns
Promise<void>