Skip to content

Commit

Permalink
Merge pull request #62 from DSM-Repo/refactor
Browse files Browse the repository at this point in the history
fix: fixed two
  • Loading branch information
six-standard authored Sep 9, 2024
2 parents 79957c3 + 1946785 commit ad7d2b9
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 23 deletions.
27 changes: 6 additions & 21 deletions configs/util-config/src/hooks/useAuth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const cookie = new Cookies();

const option = {
path: "/",
domain: isDevelopment ? "" : "dsm-repo.com"
domain: isDevelopment ? "" : "https://dsm-repo.com"
};

export const useAuth = () => {
Expand All @@ -36,26 +36,11 @@ export const useAuth = () => {
};

const delToken = () => {
cookie.remove("access_token", {
...option,
domain: isDevelopment ? "" : ".dsm-repo.com"
});
cookie.remove("access_expires", {
...option,
domain: isDevelopment ? "" : ".dsm-repo.com"
});
cookie.remove("refresh_token", {
...option,
domain: isDevelopment ? "" : ".dsm-repo.com"
});
cookie.remove("refresh_expires", {
...option,
domain: isDevelopment ? "" : ".dsm-repo.com"
});
cookie.remove("role", {
...option,
domain: isDevelopment ? "" : ".dsm-repo.com"
});
cookie.remove("access_token", option);
cookie.remove("access_expires", option);
cookie.remove("refresh_token", option);
cookie.remove("refresh_expires", option);
cookie.remove("role", option);
};

return { setToken, getToken, delToken, getRole };
Expand Down
4 changes: 2 additions & 2 deletions packages/main/src/Pages/Landing/Modal.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ export const Modal = ({ open }: IProp) => {
className={`${!open ? "hidden" : ""} fixed flex flex-center w-full h-screen backdrop-blur-sm z-20 bg-[#00000055]`}
>
<Box width="fit-content" height="fit-content" padding="40px">
<button className="self-end">
<Icon name="Close" className="self-end modal" />
<button className="self-end modal">
<Icon name="Close" className="self-end" />
</button>
<span className="font-black text-[40px] self-center">로그인</span>
<div className="w-full col-flex gap-[25px]">
Expand Down

0 comments on commit ad7d2b9

Please sign in to comment.