- How to send payload from frontend to backend.
- Generate a unique session ID.
- Store the unique session ID to the redis alongside user information and necessary information.
- suggested key is
session:${sessionId}
- suggested key is
- How verify that the payload is valid.
- Use the session ID in the authorization bearer that can be used to find in redis database and retrieve the neccessary information.
- How to save user information to redis.
- redis.set(
session:${sessionId}
, JSON.stringify(userData));