Fix auth issue

Fix #5479