Can skip passing function to AuthRequiredCommand. And it calles delegate.login with proper this value
Augment auth-required-command
Fix bug in auth-required-command
Prevent exception in auth-required-command