mirror of
https://github.com/aljazceru/opencode.git
synced 2026-01-04 00:14:59 +01:00
ignore: cloud solid fixes
This commit is contained in:
7
cloud/app/src/context/auth.withActor.ts
Normal file
7
cloud/app/src/context/auth.withActor.ts
Normal file
@@ -0,0 +1,7 @@
|
||||
import { Actor } from "@opencode/cloud-core/actor.js"
|
||||
import { getActor } from "./auth"
|
||||
|
||||
export async function withActor<T>(fn: () => T) {
|
||||
const actor = await getActor()
|
||||
return Actor.provide(actor.type, actor.properties, fn)
|
||||
}
|
||||
Reference in New Issue
Block a user