supertokens / supertokens-website

Frontend SDK for SuperTokens - for session management + automatically refreshing sessions
https://supertokens.com
Other
54 stars 13 forks source link

feat: Allow users to pass custom cookie and window handlers #120

Closed nkshah2 closed 2 years ago

nkshah2 commented 2 years ago

Summary of change

In some web frameworks (electron for example), cookie handling and Window APIs work differently. Because of this parts of the SDK do not behave the way they are supposed to, resulting in errors.

To fix this we allow passing of custom handlers when calling SuperTokens.init.

Related issues

Test Plan

All existing test cases should pass

Screenshot 2022-05-06 at 2 26 36 PM

Documentation changes

WIP

Checklist for important updates

Remaining TODOs for this PR

github-actions[bot] commented 2 years ago

size-limit report 📦

Path Size
lib/build/bundleEntry.js 10.13 KB (+6.74% 🔺)