Export BasicAuth util function.