import { listTokens } from "../../lib/api"; export const dynamic = "force-dynamic"; export default async function TokensPage({ searchParams }: { searchParams: Promise<{ created?: string }>; }) { const params = await searchParams; const tokens = await listTokens().catch(() => []); return ( <>
{params.created}
| Name | Scope | Prefix | Revoked | Actions |
|---|---|---|---|---|
| {token.name} | {token.scope} |
{token.prefix}
|
{token.revoked_at ? "yes" : "no"} |