Implement Bitbucket api  isAuthenticated method