<@!350477548469092372> , you can solve this by cha...
# general
r
@User , you can solve this by changing
req.session.userId
to
req.session.getUserId()
. The
userId
field exists, but it's
private
. This is an error in the example we have, will fix it. Then: -
(req.session as any).getUserId()
- or by
Copy code
import {SessionContainer} from "supertokens-node/recipe/session"
let session: SessionContainer = req.session
let userId = session.getUserId()