hooks/useRegister.ts
(...) import {applyToken} from '../api/client'; export default function () { const [, setUser] (); const navigation <RootStackNavigationProp>(); const mutation (register, { (data) => { (data.user); navigation. (); applyToken(data.jwt); }, (error AuthError) => { console. (error); /* TODO: 구현 예정 */ }, }); return mutation; }