Auth

🔒 Выпуск одноразового кода сквозной авторизации (handoff) для действующей сессии. Код обменивается на дочернюю сессию через signin/handoff.

Выпуск одноразового кода сквозной авторизации (handoff) для действующей сессии. Код обменивается на дочернюю сессию через signin/handoff.

Access: authorized (10 ) · allowNullCompany: true · Scope: write · только веб-сессия

Allows: не требуются — handoff code of the current session

TypeScript (copy-paste)

GET /session/handoff

<details open><summary><b>Response</b></summary>
export type SessionHandoffResponse = IServerResponse<Resp_session_handoff>

export interface IServerResponse<T = any> {
  code: number
  data: T
  srvTS: number
  rkey: string
}
</details>

Полный файл типов: /docs/types · raw: /docs/api-types.ts

get/session/handoff

Request

  • Base URL: http://localhost
  • URL: http://localhost/session/handoff
  • Auth: API key in header sid and API key in header rts and API key in header sig

Headers

devIDstring uuid required

UUID устройства клиента

tzstring required
Example:Europe/Moscow

Таймзона клиента (IANA или offset)

appstring required
Example:kosmodrom-web

Имя клиентского приложения

appVerstring required
Example:1.0.0

Версия клиента

rKeystring

Уникальный ключ запроса для логов/саппорта

Response

OK — IServerResponse<Resp_session_handoff>

codeinteger required
srvTSinteger required

Server timestamp (ms)

rkeystring required

Request key

Example response

{
  "code": 200
}

Changes

No recorded changes to this operation across all 1 revision of this API.