Hi Joel.

I tried to recreate your error but couldn't.

Are you using the latest Dancer? (1.2000)

Also, there is a community plugin to handle authorization; you might want to check it out:
http://search.cpan.org/perldoc?Dancer::Plugin::Authorize

S.