feat(backend/http): added projectID to start handler response

This commit is contained in:
Alexander Zavorotynskiy 2022-08-30 11:41:59 +02:00
parent 513aa89267
commit 750f98645f
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)
Token: e.services.Tokenizer.Compose(*tokenData),
UserUUID: userUUID,
SessionID: strconv.FormatUint(tokenData.ID, 10),
ProjectID: strconv.FormatUint(uint64(p.ProjectID), 10),
BeaconSizeLimit: e.cfg.BeaconSizeLimit,
StartTimestamp: int64(flakeid.ExtractTimestamp(tokenData.ID)),
})

View file

@ -21,6 +21,7 @@ type StartSessionResponse struct {
Token string `json:"token"`
UserUUID string `json:"userUUID"`
SessionID string `json:"sessionID"`
ProjectID string `json:"projectID"`
BeaconSizeLimit int64 `json:"beaconSizeLimit"`
}