Updated the authentication to remove duplicated token.