-
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.
feat : Complete user sign-in functionnality
- Loading branch information
1 parent
ff446b3
commit 9ac1049
Showing
7 changed files
with
131 additions
and
59 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,24 +1,21 @@ | ||
/* eslint-disable prettier/prettier */ | ||
// Import the functions you need from the SDKs you need | ||
import Constants from 'expo-constants'; | ||
import { initializeApp } from "firebase/app"; | ||
import { getAuth } from "firebase/auth"; | ||
import { getAuth,initializeAuth, getReactNativePersistence } from "firebase/auth"; | ||
import { getFirestore } from "firebase/firestore"; | ||
import ReactNativeAsyncStorage from '@react-native-async-storage/async-storage'; | ||
|
||
// TODO: Add SDKs for Firebase products that you want to use | ||
// https://firebase.google.com/docs/web/setup#available-libraries | ||
|
||
// Initialize the web app's Firebase configuration | ||
const firebaseConfig = { | ||
apiKey: Constants.expoConfig.extra.apiKey, | ||
authDomain: Constants.expoConfig.extra.firebaseAuthDomain, | ||
projectId: Constants.expoConfig.extra.firebaseProjectId, | ||
storageBucket: Constants.expoConfig.extra.firebaseStorageBucket, | ||
messagingSenderId: Constants.expoConfig.extra.firebaseMessagingSenderId, | ||
appId: Constants.expoConfig.extra.firebaseAppId, | ||
apiKey: "AIzaSyBLRzR4uqoeO7Uc6pOA-3uTNx1PhxL-bb0", | ||
authDomain: "careconnect-66481.firebaseapp.com", | ||
projectId: "66481", | ||
storageBucket: "careconnect-66481.appspot.com", | ||
messagingSenderId: "9285222114", | ||
appId: "1:9285222114:web:631966364d7e7650d268bb", | ||
}; | ||
|
||
// Initialize Firebase, Firestore and authentication module | ||
export const FIREBASE_APP = initializeApp(firebaseConfig); | ||
export const FIREBASE_AUTH = initializeAuth(FIREBASE_APP, { persistence: getReactNativePersistence(ReactNativeAsyncStorage) }); | ||
export const FIRESTORE_DB = getFirestore(FIREBASE_APP); | ||
export const FIREBASE_AUTH = getAuth(FIREBASE_APP); | ||
export const FIREBASE_GET_AUTH = getAuth(FIREBASE_APP); |
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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