kleydon / prisma-session-store

Express session store for Prisma
MIT License
116 stars 18 forks source link

How to link session to a user parameter in database #77

Closed otobot1 closed 2 years ago

otobot1 commented 2 years ago

Hi. This isn't a bug, but there's no discussion section so I wasn't sure where to ask this. Is there any way to have the sessions linked to another table in the database via a foreign key? Or is the only way to store a userID to add that key to the session object and have it stored within the data column?

kleydon commented 2 years ago

Hey @otobot1,

Thanks for the question, and for pointing out that this project lacked a discussions area. I just created one, and added your question.

Today I'm prepping for a job interview, and am short on time to think about this, but hopefully I can get to it soon (or even better) some of the really knowledgeable folk who use this library can respond.

Best!