You're invoking `ensureAuthorized` exactly once. Just run the code inline and make `callback` a named function.