-
Notifications
You must be signed in to change notification settings - Fork 51
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 #134 from LitZeus/feat/google-oauth
Added Google Oauth
- Loading branch information
Showing
5 changed files
with
32 additions
and
22 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,14 @@ | ||
MONGO_URI = mongodb://localhost:27017 | ||
DB_NAME = passop | ||
# Encryption and Decryption keys | ||
# Must be 256 bits (32 bytes) | ||
ENCRYPTION_KEY = thisisaverysecureencryptionkey!! | ||
|
||
# for firebase auth configuration | ||
VITE_FIREBASE_API_KEY=YOUR_API_KEY | ||
VITE_FIREBASE_AUTH_DOMAIN=YOUR_AUTH_DOMAIN | ||
VITE_FIREBASE_PROJECT_ID=PROJECT_ID | ||
VITE_FIREBASE_STORAGE_BUCKET=SOCKET_BUTTON | ||
VITE_FIREBASE_MESSAGING_SENDER_ID=SENDER_ID | ||
VITE_FIREBASE_APP_ID=APP_ID | ||
VITE_FIREBASE_MEASUREMENT_ID=MEASUREMENT_ID |
This file was deleted.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,23 @@ | ||
// Import the functions you need from the SDKs you need | ||
import { initializeApp } from "firebase/app"; | ||
import { getAuth } from "firebase/auth" | ||
import { getAuth } from "firebase/auth"; | ||
|
||
|
||
// Your web app's Firebase configuration | ||
// Create an accont on firebase and you get all this configuration just replace that with this | ||
// Then your sign-in / sign-up feature will work smothly | ||
const firebaseConfig = { | ||
apiKey: "YOUR_API_KEY", | ||
authDomain: "YOUR_AUTH_DOMAIN", | ||
projectId: "PROJECT_ID", | ||
storageBucket: "SOCKET_BUTTON", | ||
messagingSenderId: "SENDER_ID", | ||
appId: "APP_ID", | ||
measurementId: "MEASUREMENT_ID" | ||
apiKey: import.meta.env.VITE_FIREBASE_API_KEY, | ||
authDomain: import.meta.env.VITE_FIREBASE_AUTH_DOMAIN, | ||
projectId: import.meta.env.VITE_FIREBASE_PROJECT_ID, | ||
storageBucket: import.meta.env.VITE_FIREBASE_STORAGE_BUCKET, | ||
messagingSenderId: import.meta.env.VITE_FIREBASE_MESSAGING_SENDER_ID, | ||
appId: import.meta.env.VITE_FIREBASE_APP_ID, | ||
measurementId: import.meta.env.VITE_FIREBASE_MEASUREMENT_ID | ||
}; | ||
|
||
// Initialize Firebase | ||
const app = initializeApp(firebaseConfig); | ||
const auth = getAuth(app); | ||
export { auth, app }; | ||
export { app, auth }; | ||
|