mirror of
https://github.com/VibedByKaKi/t3-code-android-nightly.git
synced 2026-10-10 20:31:16 +02:00
16 lines
419 B
TypeScript
16 lines
419 B
TypeScript
import * as Alchemy from "alchemy";
|
|
import * as Cloudflare from "alchemy/Cloudflare";
|
|
import * as Effect from "effect/Effect";
|
|
import AuthApi from "./src/worker.ts";
|
|
|
|
export default Alchemy.Stack(
|
|
"BetterAuthTutorial",
|
|
{
|
|
providers: Cloudflare.providers(),
|
|
state: Alchemy.localState(),
|
|
},
|
|
Effect.gen(function* () {
|
|
const worker = yield* AuthApi;
|
|
return { url: worker.url.as<string>() };
|
|
}),
|
|
);
|