hitsave-io / xyz

Monorepo for HitSave
1 stars 0 forks source link

api: return user info on login as well as JWT #16

Closed seabo closed 2 years ago

seabo commented 2 years ago

On successful login, we should return some more information about the user, rather than just the JWT. Then the client can write a chummy message like "Hi seabo! You are now logged in to HitSave."

The /login route should also be informing the client of whether this user is newly created on the server, or an existing user logging in. We could then use this information to decide whether to present helpful getting started information.

seabo commented 2 years ago

done in #9