-
-
Notifications
You must be signed in to change notification settings - Fork 47
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(browser): sign-in session storage #175
Conversation
b29684b
to
5e2856f
Compare
5e2856f
to
3778d39
Compare
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.
nit: wondering whether the signInSession
is the only session storage we gonna have.
Just personal preference, instead of defining a signInSession
instance within the logtoClient. We could just have to simple sessions util methods sth like
getSessionStorage<T>(key: string, guard?: SuperstructSchema): T
setSessionStorage(key:string, data: any);
All we need to call getSessionStorage and setSessionStorage wherever it is needed. And util methods can be tested individually.
4a3a5fa
to
32fa755
Compare
9e19dbf
to
8138cfd
Compare
05b08b5
to
de95f51
Compare
ea0a03e
to
13761b8
Compare
13761b8
to
029c8c4
Compare
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.
overall LGTM
029c8c4
to
d79bfb0
Compare
d79bfb0
to
25bd83d
Compare
Summary
feat(browser): sign-in session storage
Related #170
Linear Issue Reference
LOG-1544
LOG-790
LOG-882
Testing
@logto-io/eng