-
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.
Refactor login component to use Firebase authentication and improve e…
…rror handling
- Loading branch information
1 parent
0080c65
commit 65fe828
Showing
2 changed files
with
43 additions
and
60 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { initializeApp } from "firebase/app"; | ||
import { getAuth } from "firebase/auth"; | ||
|
||
const firebaseConfig = { | ||
apiKey: "AIzaSyDgKhaEqjwzISMDZDJRgaly4nOw69pdXfs", | ||
authDomain: "cas-main-d320b.firebaseapp.com", | ||
projectId: "cas-main-d320b", | ||
storageBucket: "cas-main-d320b.firebasestorage.app", | ||
messagingSenderId: "379547223321", | ||
appId: "1:379547223321:web:103ef731cf8f72d3703188", | ||
measurementId: "G-Q0PX5SJ5JJ" | ||
}; | ||
|
||
// Initialize Firebase App | ||
const app = initializeApp(firebaseConfig); | ||
|
||
// Export Auth | ||
export const auth = getAuth(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