-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from davidroll20/firebase-auth
Beginning to setup firebase auth with google signin
- Loading branch information
Showing
3 changed files
with
33 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,21 @@ | ||
import { initializeApp } from 'firebase/app' | ||
import { collection, getFirestore } from 'firebase/firestore' | ||
import { initializeApp } from 'firebase/app'; | ||
import { collection, getFirestore } from 'firebase/firestore'; | ||
|
||
export const firebaseApp = initializeApp({ | ||
apiKey: 'AIzaSyBQ6izD-t26QvAFhHV9SvmNy1cdt9fLaz8', | ||
authDomain: 'ryan-fam.firebaseapp.com', | ||
// authDomain: 'ryan-fam.firebaseapp.com', | ||
authDomain: 'www.ryan-fam.com', | ||
projectId: 'ryan-fam', | ||
storageBucket: 'ryan-fam.firebasestorage.app', | ||
messagingSenderId: '750155303707', | ||
appId: '1:750155303707:web:d16ef825d3c2a14e93a1be', | ||
}) | ||
}); | ||
|
||
export const db = getFirestore(firebaseApp) | ||
export const db = getFirestore(firebaseApp); | ||
|
||
export enum ryanFamCollection { | ||
CALENDAR = 'calendar-events', | ||
BULLETIN = 'bulletins', | ||
} | ||
export const ryanFamCalendarRef = collection(db, ryanFamCollection.CALENDAR) | ||
export const ryanFamBulletinsRef = collection(db, ryanFamCollection.BULLETIN) | ||
export const ryanFamCalendarRef = collection(db, ryanFamCollection.CALENDAR); | ||
export const ryanFamBulletinsRef = collection(db, ryanFamCollection.BULLETIN); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters