So when you create a session you can do so in the ...
# support-questions-legacy
r
So when you create a session you can do so in the following way:
Copy code
let userId = "SomeUserId";
let jwtPayload = {userType: "admin"};
await supertokens.createNewSession(res, userId, jwtPayload);