mirror of
https://github.com/HeyPuter/puter.git
synced 2025-02-02 23:28:39 +08:00
Fix save_account token
This commit is contained in:
parent
c9f3693785
commit
a86106c0c1
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user