Skip to content

Commit 6324328

Browse files
committed
chore: pr comment 반영
1 parent c732262 commit 6324328

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

src/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ const App = () => {
109109
<Route path="/chat-recommend/:mbti" element={<ChatRecommend />} />
110110
<Route path="/chat-tips/:mbti" element={<ChatTips />} />
111111
<Route
112-
path="/chat-temporature/:conversationId"
112+
path="/chat-temperature/:conversationId"
113113
element={<ChatTemperature />}
114114
/>
115115
<Route path="/contents/:id" element={<Content />} />

src/store/useAuthStore.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ interface AuthStore {
1010
logout: () => void;
1111
}
1212

13+
interface LoginResponse {
14+
data: string;
15+
}
16+
1317
const useAuthStore = create(
1418
persist<AuthStore>(
1519
(set) => ({
@@ -23,11 +27,11 @@ const useAuthStore = create(
2327
? `/api/kakao/login?code=${code}`
2428
: `/api/kakao/login?code=${code}&redirectUrl=https://localhost:5173/kakao-login`;
2529

26-
const res = await instance.get(requestURI);
30+
const res = await instance.get<LoginResponse>(requestURI);
2731
const currentTime = new Date().toISOString();
2832
set({
2933
isLoggedIn: true,
30-
accessToken: res.data.data as string,
34+
accessToken: res.data.data,
3135
loginTime: currentTime
3236
});
3337
return {

0 commit comments

Comments
 (0)