blob: 5c87f1338d2187960210057f2ec6f2c1ba636549 (
plain)
1
2
3
4
5
6
7
8
|
import { Actor } from "@opencode/cloud-core/actor.js"
import { getActor } from "./auth"
import { getRequestEvent } from "solid-js/web"
export async function withActor<T>(fn: () => T) {
const actor = await getActor()
return Actor.provide(actor.type, actor.properties, fn)
}
|