How do I sign out users in Firebase 3.0?

后端 未结 5 1600
甜味超标
甜味超标 2021-02-03 19:09

According to documentation, I force a user to sign out with the method signOut().

This is what I have tried:

var rootRef = firebase.database         


        
5条回答
  •  说谎
    说谎 (楼主)
    2021-02-03 19:36

    I don't know if I correctly understood, but if you want to sign out every user signed in: That's not possible since the code is running on the client and the auth state refers to the client running it.

    You can't access every client connected to the firebase auth service since it would mean running code on the server side.

    However there's an option to specify the duration of a session, which is the remember parameter in the auth section.

提交回复
热议问题