This commit is contained in:
Frank
2025-10-04 01:12:22 -04:00
parent e7b6ffb314
commit 82509e8604
8 changed files with 778 additions and 43 deletions

View File

@@ -6,6 +6,7 @@ import { withActor } from "~/context/auth.withActor"
import { createStore } from "solid-js/store"
import { formatDateUTC, formatDateForTable } from "./common"
import styles from "./key-section.module.css"
import { Actor } from "@opencode/console-core/actor.js"
const removeKey = action(async (form: FormData) => {
"use server"
@@ -25,7 +26,10 @@ const createKey = action(async (form: FormData) => {
return json(
await withActor(
() =>
Key.create({ name })
Key.create({
userID: Actor.assert("user").properties.userID,
name,
})
.then((data) => ({ error: undefined, data }))
.catch((e) => ({ error: e.message as string })),
workspaceID,