diff --git a/src/api/types/auth.ts b/src/api/types/auth.ts index d911d4b..ffcf9d5 100644 --- a/src/api/types/auth.ts +++ b/src/api/types/auth.ts @@ -34,6 +34,8 @@ export interface IUserInfo { memberNickName: string; memberSmsAgree: string; imageUrl?: string; + memberPhone: string; + companyName: string; } export interface IWithdraw { diff --git a/src/hook/useLogin.ts b/src/hook/useLogin.ts index 17fa0c3..53c50c2 100644 --- a/src/hook/useLogin.ts +++ b/src/hook/useLogin.ts @@ -10,7 +10,7 @@ const useLogin = () => { const [error, setError] = useState(''); const onSuccess = (data: UserLoginType) => { const { accessToken } = data.data; - const cookieOptions = { path: '/', maxAge: 60 * 15 }; + const cookieOptions = { path: '/', maxAge: 600000 * 15 }; setCookie('token', accessToken, cookieOptions); diff --git a/src/pages/mypage/changepassword/index.tsx b/src/pages/mypage/changepassword/index.tsx index 17008e5..6b51357 100644 --- a/src/pages/mypage/changepassword/index.tsx +++ b/src/pages/mypage/changepassword/index.tsx @@ -55,9 +55,10 @@ export default function PasswordChange() { const isNextButtonEnabled = currentPasswordVerified && newPassword && newPassword === newPasswordConfirm; return ( -