Can't locate object method "authorize" via package "Net::OAuth2::Client" at C:/Users/50000001/Documents/Perl/myorg-Perl/webapp/bin/../lib/webapp.pm line 29. C:/Users/500000001/Documents/Perl/myorg-Perl/webapp/bin/../lib/webapp.pm around line 29 24 25 26 get '/:site_id' => sub { 27 my $id = route_parameters->get('site_id'); 28 print "$id" . "\n"; 29 redirect client(params->{$id})->authorize; 30 template 'query2' => { 'title' => 'webapp' }; 32 33 };