supertokens-auth-react icon indicating copy to clipboard operation
supertokens-auth-react copied to clipboard

Feat: expose no redirect auth comps

Open porcellus opened this issue 2 years ago • 1 comments

Summary of change

Expose NoRedirect version of auth components that do not redirect away if there is an active session.

Related issues

Test Plan

These components are already tested.

Documentation changes

Not strictly necessary, but we could mention them in the embedding docs.

Checklist for important updates

  • [x] Changelog has been updated
  • [x] frontendDriverInterfaceSupported.json file has been updated (if needed)
    • Along with the associated array in lib/ts/version.ts
  • [x] Changes to the version if needed
    • In package.json
    • In package-lock.json
    • In lib/ts/version.ts
  • [x] Had run npm run build-pretty
  • [x] Had installed and ran the pre-commit hook
  • [x] Issue this PR against the latest non released version branch.
    • To know which one it is, run find the latest released tag (git tag) in the format vX.Y.Z, and then find the latest branch (git branch --all) whose X.Y is greater than the latest released tag.
    • If no such branch exists, then create one from the latest released branch.
  • [x] If added a new recipe interface, then make sure that the implementation of it uses NON arrow functions only (like someFunc: function () {..}).
  • [x] If I added a new recipe, I also added the recipe entry point into the size-limit section of package.json with the size limit set to the current size rounded up.

Remaining TODOs for this PR

  • [ ] Check if we need docs update
  • [ ] Think about naming (I'm not 100% satisfied with SignInUpNoRedirect)

porcellus avatar Aug 04 '22 23:08 porcellus

size-limit report 📦

Path Size
lib/build/index.js 28.19 KB (0%)
recipe/session/index.js 26.3 KB (0%)
recipe/thirdpartyemailpassword/index.js 125.93 KB (+0.11% 🔺)
recipe/thirdparty/index.js 111.17 KB (+0.03% 🔺)
recipe/emailpassword/index.js 112.21 KB (+0.03% 🔺)
recipe/passwordless/index.js 201.47 KB (+0.02% 🔺)
recipe/thirdpartypasswordless/index.js 221.57 KB (+0.04% 🔺)

github-actions[bot] avatar Aug 05 '22 00:08 github-actions[bot]