supertokens / supertokens-node

Node SDK for SuperTokens core
https://supertokens.com
Other
293 stars 79 forks source link

Adds user context to validate function #764

Closed rishabhpoddar closed 9 months ago

rishabhpoddar commented 9 months ago

Summary of change

Adds userContext to validate function in the form field validators, so that users can read other form fields from the request body whilst validating one form field.

Test Plan

Added a tests in email password recipe to check other form field and return an error

Documentation changes

TODO

Checklist for important updates