Jewels2001 / seekers_guild

G.E.E.K. Club Seeker's Guild - See https://docs.google.com/document/d/1drpgkbU-VYYZDRqgV5-LttVNwxP5252eJI-1gHL61VA/edit?usp=sharing for more details
3 stars 0 forks source link

Email auth system implemented #7

Open dustin-ward opened 1 year ago

dustin-ward commented 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

POST
{
  "email"
  "passwdHash"
}

Returns 409 if email already exists

/login - Login user

POST
{
  "email"
  "passwdHash"
}

Returns 401 if invalid password

/logout

POST
{
  "id"
}
dustin-ward commented 1 year ago

Starts progress on #4