Reset codes are randomly generated 6 alphanumeric characters. Look into Node's builtin crypto library for generating random bytes.
Reset codes should expire after 15 minutes. Implement this by creating a MongoDB TTL index. Reach out to EM if you need help with this.
Email -> Configure and set up Brevo Email API. Credentials are in the Bitwarden
Description
Users should be able to reset their password if needed.
Implement the frontend and backend for resetting a password.
Forgot Password Flow ->
/login
acceptedInvite: true
, thenReset code -> Create a new model called
ResetCode
crypto
library for generating random bytes.Other notes