Fix handling of optional map argument to `authorize`, fixes gh-46