Skip to content

Fixed auth Issue for Firebase#1

Open
kalpshah18 wants to merge 1 commit intoOpenSource-IITGn:mainfrom
kalpshah18:main
Open

Fixed auth Issue for Firebase#1
kalpshah18 wants to merge 1 commit intoOpenSource-IITGn:mainfrom
kalpshah18:main

Conversation

@kalpshah18
Copy link

Added Firebase Auth import: Added import { getAuth } from 'firebase-admin/auth'

Created auth instance: Added 'let auth: any = null' to store the Firebase Auth instance

Initialize auth in both initialization paths:

When creating a new Firebase app: auth = getAuth();
When using an existing app: auth = getAuth();
Export the auth instance: Updated the exports to include export { adminStorage, bucket, auth };

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant