Change auth state api