Open phill52 opened 1 year ago
also should save the user info in the react-query client to make fetching it easier and DX
don't just directly make the post request, i think there's a thing with react-query for non-fetch requests. useMutation. read the docs on that and see if it is applicable
If in the user is logged in the /auth/users route returns data:false, a modal should pop up and ask the user to make a username. should send a post request to the server to make the user. username must be unique.