我在我的next.js应用程序中使用firebase登录。我的登录可以正常工作,但每次用户更改站点内的路径时,我都会注销。我不打算使用包firebase-admin,因为它总是使我的next.js站点崩溃。我只能使用常规的firebase包,其中包括firebase.auth()和js-cookie包。下面是我用来设置cookie的代码: let user = firebase_auth.current
例如,我的登录用户确实设置了photoURL,现在我正尝试通过将其设置为nil来清除它。 let changeRequest = Auth.auth().currentUser?.photoURL)")
print("photo after reload: \(Auth.auth().currentUser!.输出: photo before reload: nil
photo after