Fix deprecation complains when no token conf is specified.