firebase-functions has no exported member 'auth'

Discussão em 'Angular' iniciado por pax, Fevereiro 4, 2025.

  1. pax

    pax Guest

    This piece of code is watching for the user auth event:

    export const onUserAuthenticated = auth.user().onCreate(async (userRecord) => {
    const adminFirestore = getFirestore();
    ...


    package.json

    "firebase-functions": "~6.3.1",


    I'm importing the 'auth' like so:

    import { auth } from 'firebase-functions';


    ...and getting the following error:


    Module '"firebase-functions"' has no exported member 'auth'.
    ​

    Any help greatly appreciated.
    Thanks.

    Continue reading...

Compartilhe esta Página