Some more detail: $req
file: code/Validad::Tools::Role::OX::Request::BearerToken 6: 7: sub requires_token_claim_sub { 8: my $self = shift; 9: 10: my $sub = $self->token_claim_sub; 11: return $sub if $sub; 12: 13: http_throw( 'Unauthorized' => { www_authenticate => 'bearer' } ); 14: }
or throw an Unauthorized exception