Don't update BackendUserInfo if not authenticated
This commit is contained in:
@@ -43,7 +43,7 @@ export const currentUserInfo$ = new BehaviorSubject<UserInfo | null>(null)
|
|||||||
* Initializes the currenUserInfo$ view and sets up its update mechanism
|
* Initializes the currenUserInfo$ view and sets up its update mechanism
|
||||||
*/
|
*/
|
||||||
export async function initUserInfo() {
|
export async function initUserInfo() {
|
||||||
await updateUserInfo()
|
if (fb.idToken) await updateUserInfo()
|
||||||
|
|
||||||
fb.idToken$.subscribe((token) => {
|
fb.idToken$.subscribe((token) => {
|
||||||
if (token) {
|
if (token) {
|
||||||
|
|||||||
Reference in New Issue
Block a user