logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Authen::U2F::Tester::Const - Constants for Authen::U2F::Tester

Attributes

OK
       This error code indicates a successful response.

   OTHER_ERROR
       This error indicates some other error happened.

   BAD_REQUEST
       This error code indicates the request cannot be processed.

   CONFIGURATION_UNSUPPORTED
       This error code indicates the client configuration is not supported.

   DEVICE_INELIGIBLE
       This error code indicates that the device is not eligible for this request.  For a registration request,
       this may mean the device has already been registered.  For a signing request, this may mean the device
       was never registered.

   TIMEOUT
       This error code indicates a timeout occurred waiting for the request to be satisfied.

Author

       Michael Schout <mschout@cpan.org>

Bugs

       Please report any bugs or feature requests on the bugtracker website
       <https://github.com/mschout/perl-authen-u2f-tester/issues>

       When submitting a bug or request, please include a test-file or a patch to an existing test-file that
       illustrates the bug or desired feature.

Description

       This module provides error constants that are used by Authen::U2F::Tester.

Name

       Authen::U2F::Tester::Const - Constants for Authen::U2F::Tester

Source

       The development version is on github at <http://https://github.com/mschout/perl-authen-u2f-tester> and
       may be cloned from <git://https://github.com/mschout/perl-authen-u2f-tester.git>

Synopsis

        # import constants explicitly by name
        use Authen::U2F::Tester::Const qw(OK DEVICE_INELIGIBLE);

        # import all constants
        use Authen::U2F::Tester::Const ':all';

        # example of a sign() request where the device has not been registered
        my $r = $tester->sign(...);

        if ($r->error_code == DEVICE_INELIGIBLE) {
           die "this device has not been registered";
        }

Version

       version 0.03

See Also