btw you dont have to to try catch inside the promi...
# support-questions-legacy
m
btw you dont have to to try catch inside the promise, if there is an exception inside promise, the promise is rejected automatically. The then should just look like
Copy code
.then(async u => {
                  await createSession(res, u.id)
                  res.json(u)