(path: string, headers: Record<string, string> = {})
| 8 | const TOKEN = "boot-token"; |
| 9 | |
| 10 | const authenticate = (path: string, headers: Record<string, string> = {}) => |
| 11 | Effect.flatMap(IdentityProvider.asEffect(), (provider) => |
| 12 | provider.authenticate(new Request(`http://127.0.0.1${path}`, { headers })), |
| 13 | ).pipe(Effect.provide(makeLocalIdentityLayer(TOKEN)), Effect.exit, Effect.runPromise); |
| 14 | |
| 15 | describe("makeLocalIdentityLayer", () => { |
| 16 | it("resolves the local principal for a matching bearer token", async () => { |
no test coverage detected