File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ import { api } from './axiosInstance';
22import type { User } from '../types' ;
33
44export async function postUserMe ( ) : Promise < void > {
5- await api . post ( '/user /me' , null ) ;
5+ await api . post ( 'users /me' , null ) ;
66}
77
88export async function getMyProfile ( ) : Promise < User > {
9- const { data } = await api . get < User > ( '/user /me' ) ;
9+ const { data } = await api . get < User > ( 'users /me' ) ;
1010 return data ;
1111}
Original file line number Diff line number Diff line change @@ -57,8 +57,8 @@ export async function handleAuthCallback(): Promise<TokenResponse | null> {
5757
5858 try {
5959 await postUserMe ( ) ;
60- const me = await getMyProfile ( ) ;
61- useAuthStore . getState ( ) . setUser ( me ) ;
60+ // const me = await getMyProfile();
61+ // useAuthStore.getState().setUser(me);
6262 } catch ( e ) {
6363 console . error ( '[callback] user sync failed' , e ) ;
6464 }
You canโt perform that action at this time.
0 commit comments