saasframe auth set-password
yarn saasframe auth set-password updates the stored bcrypt hash for the specified user.
Usage
yarn saasframe auth set-password --email "<user@email>" --password "<newPassword>"
Behavior
- Looks up the user by email.
- Hashes the supplied password with
bcryptjs(cost 10). - Persists the new hash and confirms the user.
- Prints a success message such as
✅ Password updated successfully for user: [email protected].
Troubleshooting
- User not found – verify the email address, or list users with
saasframe auth list-users. - Weak passwords – the CLI enforces the configured password policy. Update
SF_PASSWORD_MIN_LENGTH,SF_PASSWORD_REQUIRE_DIGIT,SF_PASSWORD_REQUIRE_UPPERCASE, andSF_PASSWORD_REQUIRE_SPECIALif you need different rules. - Reused passwords – hashing is idempotent; rerunning the command with the same password is safe.