ReadSecret
Source:
src/Cloudflare/SecretsStore/ReadSecret.ts
Bind a {@link Secret} to a Worker and obtain the Effect-native secret
client. The client is itself an Effect that resolves to the secret’s
current value.
ReadSecret is a single identifier that is simultaneously the binding’s
Context tag, its type, and the callable —
yield* Cloudflare.SecretsStore.ReadSecret(ApiKey).
Examples
Section titled “Examples”const apiKey = yield* Cloudflare.SecretsStore.ReadSecret(ApiKey);const value = yield* apiKey;