-
Notifications
You must be signed in to change notification settings - Fork 400
/
getSession.json
31 lines (31 loc) · 1.14 KB
/
getSession.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
{
"lexicon": 1,
"id": "com.atproto.server.getSession",
"defs": {
"main": {
"type": "query",
"description": "Get information about the current auth session. Requires auth.",
"output": {
"encoding": "application/json",
"schema": {
"type": "object",
"required": ["handle", "did"],
"properties": {
"handle": { "type": "string", "format": "handle" },
"did": { "type": "string", "format": "did" },
"email": { "type": "string" },
"emailConfirmed": { "type": "boolean" },
"emailAuthFactor": { "type": "boolean" },
"didDoc": { "type": "unknown" },
"active": { "type": "boolean" },
"status": {
"type": "string",
"description": "If active=false, this optional field indicates a possible reason for why the account is not active. If active=false and no status is supplied, then the host makes no claim for why the repository is no longer being hosted.",
"knownValues": ["takendown", "suspended", "deactivated"]
}
}
}
}
}
}
}