Reputation: 596
I am using Google Firebase Authentication to handle user management for my web application.
Specifically, I am using managed session cookies. The problem I am running into is figuring out how to associate each session with a corresponding user.
For example, I would have two separate tables:
User
- Stores personal information such as name, email, password, etc
Account
- Stores account related information such as posts, friends, etc
I was thinking of using Redis
as a key-value store for this situation and the flow would work something along the lines of this:
I thought this might work because, within my Flask API, if I print out the type of the session cookie, the value is of type string.
I was wondering if this is an overkill, or if there is a better alternative to achieve what I want.
Upvotes: 0
Views: 341
Reputation: 596
After much research and discussions with peers who work in the software industry, I have decided to use the strategy outlined in the question.
Feel free to comment if you have anything else to add.
Cheers.
Upvotes: 0