const [err, res] = await to<
        AxiosResponse<UserJSON>,
        AxiosError<APIErrorJSON>
      >(axios.put('/api/account', { ...user.toJSON(), token }));