mirror of
https://github.com/AlecM33/Werewolf.git
synced 2025-12-28 00:37:50 +01:00
send existing cookie on join call
This commit is contained in:
@@ -35,7 +35,12 @@ const joinHandler = (e) => {
|
||||
'/api/games/' + accessCode + '/players',
|
||||
'PATCH',
|
||||
null,
|
||||
JSON.stringify({ playerName: name, accessCode: accessCode })
|
||||
JSON.stringify({
|
||||
playerName: name,
|
||||
accessCode: accessCode,
|
||||
sessionCookie: UserUtility.validateAnonUserSignature(globals.ENVIRONMENT.LOCAL),
|
||||
localCookie: UserUtility.validateAnonUserSignature(globals.ENVIRONMENT.PRODUCTION)
|
||||
})
|
||||
)
|
||||
.then((res) => {
|
||||
const json = JSON.parse(res.content);
|
||||
|
||||
Reference in New Issue
Block a user