Skip to content

Commit

Permalink
[add]: cookie all cookie check
Browse files Browse the repository at this point in the history
  • Loading branch information
gbwlxhd97 committed Nov 13, 2024
1 parent b96a0de commit 0c6f07a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/components/Layout/RootLayout/RootLayout.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import Cookies from 'js-cookie';
const RootLayout = () => {
const { accessToken, uuid } = useAuthStore((state) => state);
const cookieToken = Cookies.get('AUTH');
const allCookies = Cookies.get();
const maskToken = (token: string | null) => {
if (!token) return '';
if (token.length <= 12) return token;
Expand All @@ -26,6 +27,7 @@ const RootLayout = () => {
<div>
<div className={styles.Token}>Token: {maskToken(accessToken)}</div>
<div className={styles.Token}>CookieToken: {cookieToken || '없음'}</div>
<div className={styles.Token}>allCookie: {JSON.stringify(allCookies) || '올쿠키'}</div>
<div>uuid: {uuid}</div>
<button onClick={() => showiOSInfo(`${accessToken},uuid:${uuid}`)}>
확인
Expand Down

0 comments on commit 0c6f07a

Please sign in to comment.