app.tempomusic.gateway.createSession

Exchange a PDS-minted service auth token for a gateway session. The service auth JWT travels in the Authorization header (aud = the gateway DID, lxm = this NSID) and is single-use. Browser callers (Origin header present) receive the session as an HttpOnly cookie and no sessionToken is returned.

Details · procedure
Kindprocedure
Authoritygateway.tempomusic.app
Indexed
cid bafyreihudmsbhgke4z6uy2l6xmfiijcadp6xezqjvbs4hzbeqi5bcergq4

Checks

Valid Lint pass
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Exchange a PDS-minted service auth token for a gateway session. The service auth JWT travels in the Authorization header (aud = the gateway DID, lxm = this NSID) and is single-use. Browser callers (Origin header present) receive the session as an HttpOnly cookie and no sessionToken is returned.",
      "input": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "platform": {
              "description": "Client platform requesting the session. Web always receives cookie mode; other platforms receive token mode unless the request carries an Origin header.",
              "knownValues": [
                "android",
                "ios",
                "desktop",
                "web"
              ],
              "maxLength": 100,
              "type": "string"
            }
          },
          "required": [
            "platform"
          ],
          "type": "object"
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "sessionToken": {
              "description": "Opaque session token (token mode only). Absent in cookie mode.",
              "maxLength": 8192,
              "type": "string"
            }
          },
          "type": "object"
        }
      },
      "type": "procedure"
    }
  },
  "id": "app.tempomusic.gateway.createSession",
  "lexicon": 1
}