implement auth ubox function and return auth token