cleaning things up and getting the cookies way somewhat working but it's just a pain...keep it client side maybe

This commit is contained in:
Arjun Patel
2022-01-14 00:07:12 -08:00
parent 4e4bc2bcc9
commit 6e5e7ab22f
7 changed files with 174 additions and 33 deletions
+16
View File
@@ -39,3 +39,19 @@ console.log('initialized firebase')
setPersistence(getAuth(), browserSessionPersistence)
// import { credential } from 'firebase-admin';
// import { initializeApp } from 'firebase-admin/app';
// import serviceAccount from '../nirvana-for-business-firebase-adminsdk'
// if(typeof window === 'undefined') {
// console.log('initializing firebase admin')
// initializeApp({
// credential: credential.cert({
// privateKey: serviceAccount.private_key,
// clientEmail: serviceAccount.client_email,
// projectId: serviceAccount.project_id,
// })
// });
// }