Fix bug where self.result was used
Use onComplete for authentication callback