chat.yakka.getSession
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.
Details · query
| Kind | query |
|---|---|
| Authority | yakka.chat |
| Indexed |
Checks
Valid Lint pass{
"$type": "com.atproto.lexicon.schema",
"defs": {
"main": {
"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": {
"encoding": "application/json",
"schema": {
"ref": "#output",
"type": "ref"
}
},
"type": "query"
},
"output": {
"properties": {
"signedIn": {
"type": "boolean"
},
"viewer": {
"ref": "chat.yakka.defs#memberView",
"type": "ref"
}
},
"required": [
"signedIn"
],
"type": "object"
}
},
"id": "chat.yakka.getSession",
"lexicon": 1
}