supertokens / supertokens-auth-react

ReactJS authentication module for SuperTokens
https://supertokens.com
Other
276 stars 84 forks source link

feat: add nonOptionalErrorMsg props #757

Closed amitbadala closed 10 months ago

amitbadala commented 11 months ago

Summary of change

Modified the sign-in and sign-up form fields to accept a new property: nonOptionalErrorMsg. This allows for the display of a custom error message specified by the user, instead of the default Field is not Optional message, for fields that are mandatory.

Related issues

Test Plan

(Write your test plan here. If you changed any code, please provide us with clear instructions on how you verified your changes work. Bonus points for screenshots and videos!)

Documentation changes

(If relevant, please create a PR in our docs repo, or create a checklist here highlighting the necessary changes)

Checklist for important updates

Remaining TODOs for this PR

github-actions[bot] commented 11 months ago

size-limit report 📦

Path Size
lib/build/index.js 14.19 KB (0%)
recipe/session/index.js 15.15 KB (0%)
recipe/session/prebuiltui.js 17.77 KB (0%)
recipe/thirdpartyemailpassword/index.js 29.71 KB (0%)
recipe/thirdparty/index.js 26.43 KB (0%)
recipe/emailpassword/index.js 10.01 KB (0%)
recipe/emailverification/index.js 7.26 KB (0%)
recipe/passwordless/index.js 63.47 KB (0%)
recipe/thirdpartypasswordless/index.js 84.2 KB (0%)
recipe/emailverification/prebuiltui.js 22.46 KB (0%)
recipe/thirdpartyemailpassword/prebuiltui.js 54.08 KB (0%)
recipe/thirdparty/prebuiltui.js 38.51 KB (0%)
recipe/emailpassword/prebuiltui.js 27.81 KB (0%)
recipe/passwordless/prebuiltui.js 103.03 KB (0%)
recipe/thirdpartypasswordless/prebuiltui.js 130.65 KB (0%)
recipe/multitenancy/index.js 6.12 KB (0%)