supertokens / supertokens-node

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

(DRAFT) feat: Add "USER_BANNED_ERROR" status to email-password recipe #861

Closed sioquim closed 2 weeks ago

sioquim commented 2 weeks ago

Summary of change

This PR adds the "USER_BANNED_ERROR" status to the email-password recipe. This change prepares the recipe for future implementation, where we can ban and unban users effectively.

Test Plan

To verify the changes, the following steps were taken:

  1. Updated the sign-in, password reset, and email verification functions to handle the new "USER_BANNED_ERROR" status.
  2. Added tests to ensure the new status is correctly returned when a user is banned.
  3. Manually tested the sign-in and password reset flows to confirm the new error status is handled as expected.

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

netlify[bot] commented 2 weeks ago

Deploy Preview for precious-marshmallow-968a81 canceled.

Name Link
Latest commit 3d5dcab711a19967e5e251d5f2d4a9677ff281df
Latest deploy log https://app.netlify.com/sites/precious-marshmallow-968a81/deploys/6671413e64f27e0008ed52f1
netlify[bot] commented 2 weeks ago

Deploy Preview for astounding-pegasus-21c111 canceled.

Name Link
Latest commit 3d5dcab711a19967e5e251d5f2d4a9677ff281df
Latest deploy log https://app.netlify.com/sites/astounding-pegasus-21c111/deploys/6671413e231d110008620ba7