Open dustin-ward opened 1 year ago
Working email auth is now available. No routes are locked behind auth yet, but tokens are generated upon successful login and invalidated on logout. (No token expiry yet)
/register - Register user for the first time
/register
POST { "email" "passwdHash" }
Returns 409 if email already exists
/login - Login user
/login
Returns 401 if invalid password
/logout
POST { "id" }
Starts progress on #4
Working email auth is now available. No routes are locked behind auth yet, but tokens are generated upon successful login and invalidated on logout. (No token expiry yet)
/register
- Register user for the first timeReturns 409 if email already exists
/login
- Login userReturns 401 if invalid password
/logout