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.
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.