feat: add prefix to api key
This commit is contained in:
@@ -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();
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user