supertokens / supertokens-node

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

fix: Add changes to support unknown type in formField values #928

Closed deepjyoti30-st closed 2 months ago

deepjyoti30-st commented 2 months ago

Summary of change

Makes the internal type of formField values to be unknown instead of string. Also adds test for signup/password reset API's when they get non string type of values for email/password.

PS: Updated the bad input error for email/password being invalid to keep it same as Go/Python SDK's

NOTE: Did not update Changelog as that was updated in the previous PR to indicate that any support is added for formField values.

Test Plan

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 TO-DO's

cloudflare-workers-and-pages[bot] commented 2 months ago

Deploying supertokens-node-pr-check-for-edge-function-compat with  Cloudflare Pages  Cloudflare Pages

Latest commit: 2cbab88
Status: ✅  Deploy successful!
Preview URL: https://98850b14.supertokens-node-b95.pages.dev

View logs