Replies: 1 comment
-
Or do I not need to distinguish different user sessions and directly use a list to store all sessions? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I only found set, get, and delete interfaces on Logto's Storage interface, which are operations for setting some keys for a single user's login information. So how can I distinguish different users? For example, if I want to use redis and define a redisStorage, how can I distinguish different users on the key?
After checking the source code, I found that the set keys are "idToken", "accessToken", and "refreshToken". So at this time, my idea is to use redis's hash format to store, user:xxx:session. My question is how to define this "xxx"?
Beta Was this translation helpful? Give feedback.
All reactions