sync auth state