And in your API you can get this info like this: `...
# support-questions-legacy
r
And in your API you can get this info like this:
Copy code
let session = await supertokens.getSession(req, res, true);
let userId = session.getUserId();
let userType = session.getJWTPayload().userType