could you explain the subtlety here?

Also, does this the callback translate in JS to:
```function() { return afterLogin; }``` or 
```function() { return afterLogin(); }```?