feat(backend): return startTimestamp on /start

This commit is contained in:
Alex Kaminskii 2022-08-17 19:34:09 +02:00
parent 2c5d5e63ae
commit 02255f0380
2 changed files with 2 additions and 0 deletions

View file

@ -134,6 +134,7 @@ func (e *Router) startSessionHandlerWeb(w http.ResponseWriter, r *http.Request)
UserUUID: userUUID,
SessionID: strconv.FormatUint(tokenData.ID, 10),
BeaconSizeLimit: e.cfg.BeaconSizeLimit,
StartTimestamp: e.services.Flaker.ExtractTimestamp(tokenData.ID),
})
}

View file

@ -16,6 +16,7 @@ type StartSessionRequest struct {
type StartSessionResponse struct {
Timestamp int64 `json:"timestamp"`
StartTimestamp int64 `json:"startTimestamp"`
Delay int64 `json:"delay"`
Token string `json:"token"`
UserUUID string `json:"userUUID"`