#1 add authorization with firebase

Co-authored-by: Tim <timwundenberg@outlook.de>
Reviewed-on: tim/me-fit#2
This commit is contained in:
2024-07-26 23:15:11 +02:00
parent 3539bf9d3e
commit 04fa4ddf68
12 changed files with 1457 additions and 532 deletions

16
view/src/lib/firebase.ts Normal file
View File

@@ -0,0 +1,16 @@
import { getAuth } from 'firebase/auth';
import { initializeApp } from 'firebase/app';
const app = initializeApp({
apiKey: 'AIzaSyCrJBW3c3Wut8DqjyVJoFAEyJ9Had__q-Q',
authDomain: 'me-fit-a9365.firebaseapp.com',
projectId: 'me-fit-a9365',
storageBucket: 'me-fit-a9365.appspot.com',
messagingSenderId: '631045688520',
appId: '1:631045688520:web:c7e0534927b52b0db629fd'
});
const auth = getAuth(app);
export { auth };