feat: add prefix to api key

This commit is contained in:
Henry
2025-06-01 00:14:58 +01:00
parent 471f36a9c9
commit fb319cec38

View File

@@ -17,9 +17,11 @@ const CreateAPIKeyForm = ({
| undefined; | undefined;
refetchUser: () => void; refetchUser: () => void;
}) => { }) => {
console.log({ apiKey });
const handleCreateAPIKey = async () => { const handleCreateAPIKey = async () => {
await authClient.apiKey.create(); await authClient.apiKey.create({
name: "Kan API Key",
prefix: "kan_",
});
refetchUser(); refetchUser();
}; };