Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

89
Views
Problem in get UserInfo porperty from Firebase

I'm want to protect a Route in my project throwing people out if they are not logged in. I'm trying to access the UserInfo property but I'm getting this error:

/node_modules/firebase/app/dist/app/index"' has no exported member 'UserInfo'.ts(2694)

my code (svelte):

import { writable } from "svelte/store";
import type firebase from "firebase/app";

const authStore = writable<{
  isLoggedIn: boolean;
  user?: firebase.UserInfo;
  firebaseControlled: boolean;
}>({
  isLoggedIn: false,
  firebaseControlled: false,
});

export default {
  subscribe: authStore.subscribe,
  set: authStore.set,
};

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

This is a bit of a late response but I just came across the same issue myself. I couldn't seem to find documentation anywhere for this but here's how I retrieved the type:

import { writable } from 'svelte/store';
import type { UserInfo } from 'firebase/auth';

const authStore = writable<{
    isLoggedIn: boolean;
    user: UserInfo | null;
    firebaseControlled: boolean;
}>({
    isLoggedIn: false,
    user: null,
    firebaseControlled: false
});

export default {
    subscribe: authStore.subscribe,
    set: authStore.set
};
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!