supertokens / supertokens-auth-react

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

feat: Allow returning null from getRedirectionURL override #766

Closed anku255 closed 9 months ago

anku255 commented 10 months ago

Summary of change

This PR updates getRedirectionURL signature to allow returning null that would prevent redirection.

Related issues

Test Plan

I have written one unit test and added some code in with-typescript repo to test the function signature. Also added e2e tests for emailpassword and passwordless signups.

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 10 months ago

size-limit report 📦

Path Size
lib/build/index.js 14.46 KB (+1.58% 🔺)
recipe/session/index.js 15.38 KB (+1.33% 🔺)
recipe/session/prebuiltui.js 18.14 KB (+1.41% 🔺)
recipe/thirdpartyemailpassword/index.js 30.17 KB (+0.83% 🔺)
recipe/thirdparty/index.js 26.79 KB (+0.85% 🔺)
recipe/emailpassword/index.js 10.23 KB (+2.15% 🔺)
recipe/emailverification/index.js 7.47 KB (+2.82% 🔺)
recipe/passwordless/index.js 63.9 KB (+0.33% 🔺)
recipe/thirdpartypasswordless/index.js 83.92 KB (+0.3% 🔺)
recipe/emailverification/prebuiltui.js 22.82 KB (+1.02% 🔺)
recipe/thirdpartyemailpassword/prebuiltui.js 54.4 KB (+0.62% 🔺)
recipe/thirdparty/prebuiltui.js 38.89 KB (+0.69% 🔺)
recipe/emailpassword/prebuiltui.js 28.16 KB (+0.9% 🔺)
recipe/passwordless/prebuiltui.js 103.01 KB (-0.22% 🔽)
recipe/thirdpartypasswordless/prebuiltui.js 130.18 KB (-0.17% 🔽)
recipe/multitenancy/index.js 6.28 KB (+2.65% 🔺)