Auth0 Home Blog Docs

How do I associate a session with a user in my database (their non-login info)?

users
flask-jwt
python

#1

Hello. I’m slowly wrapping my head around how sessions work. I’ve worked with Rails previously but that abstracts it away. I’m working on a Flask/Python app.

Users have (row/node) IDs, so what should I know/do?

Thanks! Also I’m using the option of redirecting to auth0, if that helps


#2

Looks like I need to accept/retrieve the user profile/user_id. This is possibly sent with the JWT. I’ll keep looking for a tutorial on this. These helped target my search:



#3

Okay. The ID Token contains the user info and it was shown how to access it in the server.py file in the demo - the demo stores it in the session. Not sure if I didn’t read far enough or if I wasn’t ready to understand it.