Front : create class to connect, send and receive message
- Create environment class - Create Connexion class to connect and save data - Refactor back api
This commit is contained in:
parent
b4f77ba51a
commit
7e08e7f133
8 changed files with 374 additions and 5 deletions
|
@ -22,7 +22,7 @@ export class AuthenticateController{
|
|||
}
|
||||
//TODO check user email for The Coding Machine game
|
||||
let token = Jwt.sign({email: param.email, roomId: ROOM}, SECRET_KEY, {expiresIn: '24h'});
|
||||
return res.status(OK).send({token: token});
|
||||
return res.status(OK).send({token: token, roomId: ROOM});
|
||||
});
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue