rp_st
03/23/2021, 2:28 PMreq.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
import {SessionContainer} from "supertokens-node/recipe/session"
let session: SessionContainer = req.session
let userId = session.getUserId()