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()
User's email information, if available.
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>