File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff 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 /> } />
Original file line number Diff line number Diff line change @@ -10,6 +10,10 @@ interface AuthStore {
1010 logout : ( ) => void ;
1111}
1212
13+ interface LoginResponse {
14+ data : string ;
15+ }
16+
1317const 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 {
You can’t perform that action at this time.
0 commit comments