AtpSession Type
An authenticated session with an AT Protocol Personal Data Server (PDS). Obtained by calling login with valid credentials.
Sessions contain a short-lived access JWT for API calls and a longer-lived refresh JWT for obtaining new access tokens. The Xrpc module automatically refreshes expired access tokens using the refresh JWT.
Record fields
| Record Field |
Description
|
Full Usage:
AccessJwt
Field type: string
|
The short-lived JWT used to authenticate XRPC requests.
|
The DID (Decentralized Identifier) of the authenticated user (e.g. "did:plc:xyz123").
|
|
The handle of the authenticated user (e.g. "my-handle.bsky.social").
|
|
Full Usage:
RefreshJwt
Field type: string
|
The longer-lived JWT used to refresh the session when the access token expires.
|