Sign-Up and Sign-In Routes
A students table with a password_hash column and a UNIQUE email holds the accounts, a sign-up route hashes the password and answers 201 with the new student or 409 for a used email, a response model keeps the hash out of every answer, and sign-in answers a wrong email and a wrong password with the same 401.
Updated

- Category
- FastAPI
- Level
- Journeyman
- Tags
- 401 Unauthorized, 409 Conflict, Authentication, fastapi, rest-api, Unique Index