Closed tom00502 closed 3 months ago
Once the game is over, frontend can call the following endpoint to close the game, and close the iframe window as well.
POST 'https://spt-games-split.zeabur.app/api/v1/games/${GAME_ID}/end-game-via-gaas-token' Headers: 'Authorization: Bearer ${TOKEN_FROM_GAAS}'
// 200 { "message": "Game ended" } // 422 { "message": "Failed to end game" }
completed
Btw (in the future) I'd like to use the GaaS token(Auth0 token) in whole processes. So that client don't need to keep 2 jwt at the same time 🤣
Do this!!
End of the game
Once the game is over, frontend can call the following endpoint to close the game, and close the iframe window as well.
request
response