full diff

ai.newnal.illi.account.exchangeCode

From
bafyreidrhwyxug4nlyz5kga2ssgjzozneb5cebhslm73tzxrt5futs3tga indexed 2026-10-21 08:12 UTC View this version
To
bafyreibwhx7utm53ejdhqpfizaxdxjbcozknddrfc2e5ahwomgo7fofzri indexed 2026-10-23 07:24 UTC View this version

Compatibility

backward compatible No changes detected.

Changes

11{
22 "$type": "com.atproto.lexicon.schema",
33 "defs": {
44 "main": {
5 "description": "Exchange the one-time code from a client=native sign-in (delivered to the app at …/native/callback?code=…, 60 s, single use) for a session token, sent afterwards as Authorization: Bearer on every call and on /events (D-45). The code is bound to the code_challenge the app sent when it started the sign-in; codeVerifier proves it is the same app (D-76, PKCE-style S256), which stops a code obtained for another account from being injected into the app.",
5 "description": "Exchange the one-time code from a client=native sign-in (delivered to the app at …/native/callback?code=…, 60 s, single use) for a session token, sent afterwards as Authorization: Bearer on every call and on /events. The code is bound to the code_challenge the app sent when it started the sign-in; codeVerifier proves it is the same app (PKCE-style S256), which stops a code obtained for another account from being injected into the app.",
66 "errors": [
77 {
88 "name": "InvalidCode"
99 },
1010 {
1111 "name": "RateLimitExceeded"
1212 }
1313 ],
1414 "input": {
1515 "encoding": "application/json",
1616 "schema": {
1717 "properties": {
1818 "code": {
1919 "maxLength": 128,
2020 "type": "string"
2121 },
2222 "codeVerifier": {
2323 "description": "The random secret (RFC 7636 code verifier: 43-128 characters of A-Z a-z 0-9 - . _ ~) whose base64url(SHA-256) the app sent as code_challenge to /oauth/login or account.parent.startOAuth.",
2424 "maxLength": 128,
2525 "minLength": 43,
2626 "type": "string"
2727 }
2828 },
2929 "required": [
3030 "code",
3131 "codeVerifier"
3232 ],
3333 "type": "object"
3434 }
3535 },
3636 "output": {
3737 "encoding": "application/json",
3838 "schema": {
3939 "properties": {
4040 "app": {
4141 "knownValues": [
4242 "family",
4343 "device"
4444 ],
4545 "type": "string"
4646 },
4747 "did": {
4848 "format": "did",
4949 "type": "string"
5050 },
5151 "expiresAt": {
5252 "format": "datetime",
5353 "type": "string"
5454 },
5555 "token": {
5656 "type": "string"
5757 }
5858 },
5959 "required": [
6060 "token",
6161 "did",
6262 "app",
6363 "expiresAt"
6464 ],
6565 "type": "object"
6666 }
6767 },
6868 "type": "procedure"
6969 }
7070 },
7171 "id": "ai.newnal.illi.account.exchangeCode",
7272 "lexicon": 1
7373}

Compare other versions