diff --git a/apps/dashboard/app/(app)/apis/[apiId]/_components/create-key/components/key-secret-section.tsx b/apps/dashboard/app/(app)/apis/[apiId]/_components/create-key/components/key-secret-section.tsx index f24fa9d1a4..6e7c952b1c 100644 --- a/apps/dashboard/app/(app)/apis/[apiId]/_components/create-key/components/key-secret-section.tsx +++ b/apps/dashboard/app/(app)/apis/[apiId]/_components/create-key/components/key-secret-section.tsx @@ -1,6 +1,7 @@ "use client"; import { SecretKey } from "@/app/(app)/apis/[apiId]/_components/create-key/components/secret-key"; +import { Alert, AlertDescription, AlertTitle } from "@/components/ui/alert"; import { CircleInfo } from "@unkey/icons"; import { Code, CopyButton, VisibleButton } from "@unkey/ui"; import { useState } from "react"; @@ -29,12 +30,12 @@ export const KeySecretSection = ({ : "*".repeat(split.at(0)?.length ?? 0); const snippet = `curl -XPOST '${ - process.env.NEXT_PUBLIC_UNKEY_API_URL ?? "https://api.unkey.dev" - }/v1/keys.verifyKey' \\ + process.env.NEXT_PUBLIC_UNKEY_API_URL ?? "https://api.unkey.com" + }/v2/keys.verifyKey' \\ + -H 'Authorization: Bearer ' \\ -H 'Content-Type: application/json' \\ -d '{ - "key": "${keyValue}", - "apiId": "${apiId}" + "key": "${keyValue}" }'`; return ( @@ -68,6 +69,29 @@ export const KeySecretSection = ({ > {showKeyInSnippet ? snippet : snippet.replace(keyValue, maskedKey)} + +
+
+
);