Function should handle optional arguments
Simple auth example.