Fix save_account token

This commit is contained in:
KernelDeimos 2024-05-04 14:19:09 -04:00
parent c9f3693785
commit a86106c0c1

View File

@ -158,7 +158,8 @@ router.post('/save_account', auth, express.json(), async (req, res, next)=>{
}
// create token for login
const token = await jwt.sign({uuid: user_uuid}, config.jwt_secret);
const svc_auth = req.services.get('auth');
const { token } = await svc_auth.create_session_token(req.user, { req });
// user id
// todo if pseudo user, assign directly no need to do another DB lookup