Skip to content

Commit

Permalink
쿠키 확인
Browse files Browse the repository at this point in the history
  • Loading branch information
eunxoo committed Feb 15, 2024
1 parent eb3180a commit 34bcd7e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/login/LoginPage.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import axios from "axios";
import React, { useState } from "react";
import { useNavigate } from "react-router-dom";
import styled from "styled-components";
import { setCookie } from "../../api/cookie";
import { getCookie, setCookie } from "../../api/cookie";

const LoginLayout = styled.div`
display: flex;
Expand Down Expand Up @@ -109,7 +109,7 @@ const LoginPage = () => {
setCookie("refreshToken", response.data.result.refreshToken, {
path: "/",
});

console.log(getCookie("accessToken"));
navigate("/");
} catch (err) {
console.error(err);
Expand Down

0 comments on commit 34bcd7e

Please sign in to comment.