Zachiah / baptist-piano-site

0 stars 0 forks source link

Add automated tests of authentication system #1

Open Zachiah opened 2 years ago

Zachiah commented 2 years ago
  1. Ensure /auth/api/login validates the request to match { email: email}
  2. Ensure when successful, /auth/api/login will send a token (it will call the sendEmail function)
  3. Ensure that the /auth/api/authenticate route validates request to look like {email, emailToken}
  4. Ensure that the /auth/api/validate_request_auth route will correctly show if the user has a valid jwt