Skip to content

Commit

Permalink
refactor:콘솔로그 삭제
Browse files Browse the repository at this point in the history
k22y22 committed Jul 23, 2023
1 parent d4406d4 commit e5185ba
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions client/src/pages/LoginPage/LoginPage.tsx
Original file line number Diff line number Diff line change
@@ -34,10 +34,8 @@ const LoginPage: React.FC = () => {
});
const authHeader = response.headers.authorization;
if (authHeader && authHeader.startsWith('Bearer ')) {
const token = authHeader.substring(7);
console.log('추출된 JWT 토큰:', token);
setCookie('jwtToken', authHeader.substring(7));
}
setCookie('jwtToken', 'token');
if (response.status === 200) {
window.alert('환영합니다!');
navigate('/');

0 comments on commit e5185ba

Please sign in to comment.