feat: add delete and copy token on token page

This commit is contained in:
Catalin Pit
2023-11-27 16:29:24 +02:00
parent 2deaad5c34
commit 13997d3dca
3 changed files with 86 additions and 19 deletions

View File

@ -1,10 +1,6 @@
import { getRequiredServerComponentSession } from '@documenso/lib/next-auth/get-server-component-session';
import { ApiTokenForm } from '~/components/forms/token';
export default async function ApiToken() {
const { user } = await getRequiredServerComponentSession();
export default function ApiToken() {
return (
<div>
<h3 className="text-lg font-medium">API Token</h3>
@ -15,7 +11,7 @@ export default async function ApiToken() {
<hr className="my-4" />
<ApiTokenForm user={user} className="max-w-xl" />
<ApiTokenForm className="max-w-xl" />
</div>
);
}