Header menu logo FSharp.ATProto

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

AccessJwt

Full Usage: AccessJwt

Field type: string

The short-lived JWT used to authenticate XRPC requests.

Field type: string

Did

Full Usage: Did

Field type: Did

The DID (Decentralized Identifier) of the authenticated user (e.g. "did:plc:xyz123").

Field type: Did

Handle

Full Usage: Handle

Field type: Handle

The handle of the authenticated user (e.g. "my-handle.bsky.social").

Field type: Handle

RefreshJwt

Full Usage: RefreshJwt

Field type: string

The longer-lived JWT used to refresh the session when the access token expires.

Field type: string

Type something to start searching.