typo in BasicAuth function