Intent-Code Divergence
Medium
- Confidence
- 93% confidence
- Finding
- The documentation says `input: false` prevents users from setting the `role` field during signup, but the very next example shows `res.user.role` evaluating to `admin` despite no admin input being supplied. This contradictory example can mislead developers into assuming privileged fields are safely controlled when the example suggests unexpected elevation, increasing the risk of insecure role-handling implementations.
