mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-14 10:29:52 +00:00
ref(frontend): update to absolute import
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import SecurityClient from "../../../components/utilities/SecurityClient";
|
||||
import SecurityClient from "~/utilities/SecurityClient";
|
||||
import { PATH } from "../../../const";
|
||||
|
||||
/**
|
||||
@@ -14,9 +14,8 @@ const logout = async (req, res) => {
|
||||
headers: {
|
||||
"Content-Type": "application/json",
|
||||
},
|
||||
credentials: "include"
|
||||
})
|
||||
.then(res => {
|
||||
credentials: "include",
|
||||
}).then((res) => {
|
||||
if (res.status == 200) {
|
||||
SecurityClient.setToken("");
|
||||
// Delete the cookie by not setting a value; Alternatively clear the local storage
|
||||
@@ -30,7 +29,7 @@ const logout = async (req, res) => {
|
||||
} else {
|
||||
console.log("Failed to log out");
|
||||
}
|
||||
})
|
||||
});
|
||||
};
|
||||
|
||||
export default logout;
|
||||
|
||||
Reference in New Issue
Block a user