@edgedev/firebase 1.0.23 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.ts +11 -10
- package/package.json +1 -1
package/index.ts
CHANGED
|
@@ -29,18 +29,19 @@ const firebaseConfig = {
|
|
|
29
29
|
|
|
30
30
|
// Initialize Firebase
|
|
31
31
|
const app = initializeApp(firebaseConfig);
|
|
32
|
-
const auth = getAuth();
|
|
32
|
+
const auth = getAuth(app);
|
|
33
|
+
console.log(auth);
|
|
33
34
|
const db = getFirestore(app);
|
|
34
35
|
|
|
35
|
-
export const signIn = async (credentials: Credentials): Promise<object> => {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
};
|
|
36
|
+
// export const signIn = async (credentials: Credentials): Promise<object> => {
|
|
37
|
+
// const user = await signInWithEmailAndPassword(
|
|
38
|
+
// auth,
|
|
39
|
+
// credentials.email,
|
|
40
|
+
// credentials.password
|
|
41
|
+
// );
|
|
42
|
+
// console.log(user);
|
|
43
|
+
// return user;
|
|
44
|
+
// };
|
|
44
45
|
|
|
45
46
|
// Simple Store Items (add matching key per firebase collection)
|
|
46
47
|
export const data: CollectionDataObject = reactive({});
|