```const signIn = (req, res) => { const { emai...
# support-questions
d
Copy code
const signIn = (req, res) => {
    const { email, password } = req.body
    try {
        ThirdPartyEmailPassword
            .signIn(email, password)
            .then(async u => {
                await createSession(res, u.id)
                res.json(u)
            }).catch(e => {
                res.status(500).json(e)
            })
    } catch (error) {
        res.status(500).json(error)
    }
}