Skip to content
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

Handle null values in jwtPayload and sessionData more gracefully #77

Closed
rishabhpoddar opened this issue Jan 30, 2021 · 2 comments
Closed
Assignees

Comments

@rishabhpoddar
Copy link
Contributor

rishabhpoddar commented Jan 30, 2021

Allow the user to give null in createNewSession and other functions that update session payloads. We can handle this by checking for null and setting it to undefined instead.

@bhumilsarvaiya
Copy link
Contributor

@rishabhpoddar should it be undefined or {} (which is also the default value if user has not passed any value)?

@rishabhpoddar
Copy link
Contributor Author

{} should be fine.

bhumilsarvaiya added a commit that referenced this issue Feb 2, 2021
rishabhpoddar added a commit that referenced this issue Feb 4, 2021
…on and jwt data (#81)

* config input schema validation added. closes #73

* fixes #77

* code review changes

* fixes review comments

Co-authored-by: Rishabh Poddar <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants