New feature: You can now change the api key graphically with an changeAPI card.
This commit is contained in:
7
frontend/src/utils/changeAPIcookie.ts
Normal file
7
frontend/src/utils/changeAPIcookie.ts
Normal 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");
|
||||
};
|
Reference in New Issue
Block a user