pdsx._internal.auth
authentication utilities for atproto.
Functions
login_with_session_fallback
AsyncClient.login establishes the session and then populates
client.me via app.bsky.actor.getProfile — an AppView method. A PDS
that doesn’t proxy it (zds, for one) answers 404 UnknownMethod at that
second step, after the session is already set, so a login that actually
succeeded surfaces as a total failure.
Only the profile lookup is optional, so fall back to the identity the
session already carries. A non-existent session means createSession itself
failed (bad credentials), which must still raise.
login
client: atproto client to authenticatehandle: user handlepassword: user passwordsilent: suppress authentication outputrequired: whether authentication is required
- True if authenticated, False if skipped (when not required)