NAME
At::Protocol::Session - AT Protocol Session Container
SYNOPSIS
my $session = At::Protocol::Session->new(
did => 'did:plc:...',
accessJwt => '...',
handle => 'user.bsky.social'
);
say $session->did;
say $session->handle;
DESCRIPTION
At::Protocol::Session stores authentication data for an active session. It supports both legacy password-based sessions and modern OAuth/DPoP sessions.
Attributes
accessJwt()
The access token for the session.
refreshJwt()
The refresh token for the session.
did()
The DID of the authenticated user. This is returned as an At::Protocol::DID object.
handle()
The handle of the authenticated user.
token_type()
Typically 'Bearer' for legacy sessions or 'DPoP' for OAuth sessions.
scope()
The scopes granted to this session.
email(), emailConfirmed(), emailAuthFactor()
User email information, if available. emailAuthFactor() reports whether email-based two-factor authentication is enabled for the account.
dpop_key_jwk()
The JWK of the DPoP key associated with an OAuth session, when present.
client_id()
The OAuth client ID used to establish an OAuth session, when present.
pds()
The PDS host that issued the session, when known.
status(), active()
Account status information returned by the server, when present.
didDoc()
The DID document associated with the session, when returned by the server.
LICENSE
Copyright (C) Sanko Robinson.
This library is free software; you can redistribute it and/or modify it under the terms found in the Artistic License 2. Other copyrights, terms, and conditions may apply to data transmitted through this module.
AUTHOR
Sanko Robinson <sanko@cpan.org>