chat.yakka.getSession

yakka.chat

Documentation

Who the caller is signed in as. The session cookie carries an opaque id and nothing else (ADR 0034 §2), so this is how a client learns its own DID — it cannot read one out of the cookie, by design. Answers 200 with `signedIn: false` rather than 401 for an anonymous caller: not being signed in is an ordinary state of the application, not an error in the request.

main query

Who the caller is signed in as. The session cookie carries an opaque id and nothing else (ADR 0034 §2), so this is how a client learns its own DID — it cannot read one out of the cookie, by design. Answers 200 with `signedIn: false` rather than 401 for an anonymous caller: not being signed in is an ordinary state of the application, not an error in the request.

Output

Encodingapplication/json
Schema#output
Try It

Requests are sent directly from your browser. Some servers may block requests due to CORS.

Base URL for XRPC calls (e.g., https://api.bsky.social)
View raw schema
{
  "type": "query",
  "output": {
    "schema": {
      "ref": "#output",
      "type": "ref"
    },
    "encoding": "application/json"
  },
  "description": "Who the caller is signed in as. The session cookie carries an opaque id and nothing else (ADR 0034 §2), so this is how a client learns its own DID — it cannot read one out of the cookie, by design. Answers 200 with `signedIn: false` rather than 401 for an anonymous caller: not being signed in is an ordinary state of the application, not an error in the request."
}
output object

No description available.

Properties

signedIn boolean Required

No description available.

View raw schema
{
  "type": "object",
  "required": [
    "signedIn"
  ],
  "properties": {
    "viewer": {
      "ref": "chat.yakka.defs#memberView",
      "type": "ref"
    },
    "signedIn": {
      "type": "boolean"
    }
  }
}

Lexicon Garden

@