Refactor users authentication to InternalToken.