api key creation issues (THE_PROPERTY_YOURE_TRYING_TO_SET_CAN_ONLY_BE_SET_FROM_THE_SERVER_AUTH_INST)

const handleCreate = async () => {
setCreating(true);
try {
await authClient.apiKey.create({
expiresIn: 60 * 60 * 24 * 365,
metadata: { source: "settings" },
});
await refresh();
} finally {
setCreating(false);
}
};
const handleCreate = async () => {
setCreating(true);
try {
await authClient.apiKey.create({
expiresIn: 60 * 60 * 24 * 365,
metadata: { source: "settings" },
});
await refresh();
} finally {
setCreating(false);
}
};
0 Replies
No replies yetBe the first to reply to this messageJoin

Did you find this page helpful?