()
| 28 | }> {} |
| 29 | |
| 30 | const memoryProvider = (): CredentialProvider => { |
| 31 | const store = new Map<string, string>(); |
| 32 | return { |
| 33 | key: ProviderKey.make("memory"), |
| 34 | writable: true, |
| 35 | get: (id) => Effect.sync(() => store.get(String(id)) ?? null), |
| 36 | set: (id, value) => Effect.sync(() => void store.set(String(id), value)), |
| 37 | }; |
| 38 | }; |
| 39 | |
| 40 | const INTEG = IntegrationSlug.make("demo"); |
| 41 | const TEMPLATE = AuthTemplateSlug.make("apiKey"); |
no test coverage detected