NAME
WWW::Picnic::Result::Login - Picnic login result with 2FA status
VERSION
version 0.100
SYNOPSIS
my $login = $picnic->login;
if ($login->requires_2fa) {
$picnic->generate_2fa_code;
print "Enter SMS code: ";
my $code = <STDIN>;
chomp $code;
$picnic->verify_2fa_code($code);
}
DESCRIPTION
Represents the result of a login attempt. Contains information about whether two-factor authentication is required.
auth_key
The authentication token if login was successful.
user_id
The user ID from the login response.
second_factor_authentication_required
Boolean indicating if 2FA verification is required to complete login.
show_second_factor_authentication_intro
Boolean indicating if the 2FA intro should be shown to the user.
requires_2fa
Convenience method returning true if 2FA is required.
is_authenticated
Returns true if fully authenticated (has auth key and no 2FA pending).
SUPPORT
Issues
Please report bugs and feature requests on GitHub at https://github.com/Getty/p5-www-picnic/issues.
IRC
You can reach Getty on irc.perl.org for questions and support.
CONTRIBUTING
Contributions are welcome! Please fork the repository and submit a pull request.
AUTHOR
Torsten Raudssus <torsten@raudssus.de>
COPYRIGHT AND LICENSE
This software is copyright (c) 2025 by Torsten Raudssus.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.