supertokens / supertokens-auth-react

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

fix: preserve query params when redirectBack is used #779

Closed anku255 closed 9 months ago

anku255 commented 9 months ago

Summary of change

Previously, when calling redirectToAuth with the redirectBack option, query parameters were stripped when redirecting back to the previous page after authentication. This issue has been fixed, and now query parameters are preserved as intended.

Test Plan

Tested manually extensively. Also, updated an existing test case to verify query params are being preserved.

Checklist for important updates

github-actions[bot] commented 9 months ago

size-limit report 📦

Path Size
lib/build/index.js 14.49 KB (+0.22% 🔺)
recipe/session/index.js 15.41 KB (+0.18% 🔺)
recipe/session/prebuiltui.js 18.17 KB (+0.17% 🔺)
recipe/thirdpartyemailpassword/index.js 30.21 KB (+0.12% 🔺)
recipe/thirdparty/index.js 26.82 KB (+0.12% 🔺)
recipe/emailpassword/index.js 10.27 KB (+0.32% 🔺)
recipe/emailverification/index.js 7.5 KB (+0.4% 🔺)
recipe/passwordless/index.js 63.93 KB (+0.05% 🔺)
recipe/thirdpartypasswordless/index.js 83.96 KB (+0.05% 🔺)
recipe/emailverification/prebuiltui.js 22.86 KB (+0.15% 🔺)
recipe/thirdpartyemailpassword/prebuiltui.js 54.43 KB (+0.06% 🔺)
recipe/thirdparty/prebuiltui.js 38.92 KB (+0.09% 🔺)
recipe/emailpassword/prebuiltui.js 28.19 KB (+0.12% 🔺)
recipe/passwordless/prebuiltui.js 103.04 KB (+0.04% 🔺)
recipe/thirdpartypasswordless/prebuiltui.js 130.22 KB (+0.03% 🔺)
recipe/multitenancy/index.js 6.31 KB (+0.55% 🔺)