const program = Effect.gen(function* () {
console.log("Verifying code", { code });
const response = yield* client
.emailVerify({
body: {
code,
email,
},
})
.pipe(
HttpClient.withFetchOptions({
credentials: "include",
}),
);
console.log("Verified code", response);
});
Effect.runFork(program);
const program = Effect.gen(function* () {
console.log("Verifying code", { code });
const response = yield* client
.emailVerify({
body: {
code,
email,
},
})
.pipe(
HttpClient.withFetchOptions({
credentials: "include",
}),
);
console.log("Verified code", response);
});
Effect.runFork(program);