-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add option to save session data to local storage #900
Conversation
CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅ |
I have read the CLA Document and I hereby sign the CLA |
if ( | ||
!sessionState.id || | ||
typeof sessionState.id !== 'string' || | ||
!sessionState.id.length || |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you need this here... I guess it is covered with !== 32
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was part of the original code, I'm refactoring this in upcoming PR.
!sessionState.id || | ||
typeof sessionState.id !== 'string' || | ||
!sessionState.id.length || | ||
sessionState.id.length !== 32 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you please use SESSION_ID_LENGTH
? I mean can be done in the upcoming PR
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sure, it will be improved in upcoming PR.
Description
Added
init
config optionuseLocalStorage
to save session data to local storage instead of cookie. It's mandatory for environments where cookie isn't usable, like Electron apps.List Github issue(s) which this PR fixes.
Type of change
Delete options that are not relevant.
How has this been tested?
Delete options that are not relevant.