New feature: You can now change the api key graphically with an changeAPI card.

This commit is contained in:
2025-07-29 22:28:25 +02:00
parent 5f514d4578
commit 0e53ed60c4
3 changed files with 53 additions and 11 deletions

View File

@@ -0,0 +1,7 @@
import Cookies from "js-cookie";
import { myToast } from "./toastify";
export const changeAPIcookie = (newApiKey: string) => {
Cookies.set("apiKey", newApiKey);
myToast("API key updated successfully!", "success");
};