TypeScript API / @laikacms/server/oauth2 / LaikaOauth2
Interface: LaikaOauth2
Methods
fetch()
ts
fetch(request): Promise<Response>;Parameters
| Parameter | Type |
|---|---|
request | Request |
Returns
Promise<Response>
ready()
ts
ready(): Promise<void>;Resolve the safety-gate checks that need an await — the ones that ask crypto.subtle whether it genuinely implements the algorithms this package depends on. fetch awaits this itself on the first request; call it directly at startup to fail fast instead of on first traffic.
Returns
Promise<void>
Throws
UnsafeRuntimeError when the runtime cannot uphold a guarantee and the reason has not been suppressed via ignoreUnsafeReasons.