phill52 / WorkWind

1 stars 0 forks source link

CLIENT: if auth0 user does not exist in postgres, modal #1

Open phill52 opened 1 year ago

phill52 commented 1 year ago

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.

phill52 commented 1 year ago

also should save the user info in the react-query client to make fetching it easier and DX

phill52 commented 1 year ago

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