```const createSession = async (res, userId) => { ...
# support-questions
d
Copy code
const createSession = async (res, userId) => {
    try {
        console.log(userId)
        await Session
            .createNewSession(res, userId)
            .then(token => {
                console.log(token)
            }).catch(error => {
                console.log(error)
            })
    } catch (error) {
        return error
    }
}