julianlam / nodebb-plugin-session-sharing

Allows login sessions from your app to persist in NodeBB
MIT License
86 stars 66 forks source link

if id is mongodb objectID,it will work fine? #102

Closed bookyo closed 3 years ago

bookyo commented 3 years ago

if my app userid is mongodb objectID,it will work fine?

julianlam commented 3 years ago

I don't think so... the id value is just used in the database key, and is concatenated with the string :uid, so you can just really leave it as-is.

It's only really useful if you want to keep things separated in case you want to switch to a different session-sharing strategy later on.