Skip to main content

get_session

Function get_session 

Source
pub(crate) async fn get_session(
    __arg0: State<AppState>,
    headers: HeaderMap,
) -> Response
Expand description

GET /xrpc/com.atproto.server.getSession

The account the presented credential signs in as: its DID, its handle, its DID document, and whether its repository is active. Takes the credentials the write routes take, an agent token or a DPoP-bound OAuth token. active and status are what com.atproto.sync.getRepoStatus reports for the same account. Validating a session is a use of it, so the e-stop refuses this under either setting.