|
|
|
|
|
by vova_hn2
5 days ago
|
|
Thanks for the correction, I didn't think about this approach and it sounds like it should work. The only comment that I have that if you are already querying users table (or collection in case of NoSQL or whatever), you might as well have a sessions table/collection in the same database/storage and query them together. It seems that difference is not that big. The purported advantage of stateless sessions is that you can check the auth without querying the main db/storage (maybe only querying a smaller/faster axillary storage). |
|