popover account + popover cart

This commit is contained in:
hamid zarghami
2025-09-15 15:59:45 +03:30
parent 220c8be526
commit ab29dc26dd
7 changed files with 741 additions and 13 deletions
+2 -2
View File
@@ -59,14 +59,14 @@ export const setRefreshToken = (refreshToken: string) => {
localStorage.setItem(REFRESH_TOKEN_NAME, refreshToken);
};
export const removeToken = () => {
export const removeToken = async () => {
if (typeof window === "undefined") {
return;
}
localStorage.removeItem(TOKEN_NAME);
};
export const removeRefreshToken = () => {
export const removeRefreshToken = async () => {
if (typeof window === "undefined") {
return;
}