Can I use Firebase Admin SDK for SSG in my Next.js app? [closed] - firebase

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 2 days ago.
This post was edited and submitted for review 2 days ago.
Improve this question
I'm building an app using Next.js for the frontend and Firebase for the backend. I'm interested in using SSG to fetch data server-side for my pages.
Firebase provides a handy client-side package, but since getServerSideProps runs server-side, I can't use the client-side library for data fetching, as it doesn't have access to the user session.
Is it possible to use the Firebase Admin SDK to fetch data for my pages within Next.js's getServerSideProps function?

Related

How to combine two flutter projects using firebase? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 3 years ago.
Improve this question
I have designed a booking page using flutter and firebase. I used Cloud firestore to store all the details of the users. Now i a need separate admin app to receive the data and modify it.how can i combine my firebase project with the admin app.
You can have multiple apps added to your Firebase project.
You can also use Custom Claims to grant some of your users some additional claims which then you can use in scurity rules. In this way you can make some account have admin-like permissions.

Integrate Firebase web chat seamlessly with an existing application [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I need to integrate Firebase web chat in an existing web application. The integration has to be seamless . I would not like to store the username and password of a user in the Firestore database. Can this be done? If yes, then how?
All Firebase products are fully hosted services. While some of them have local emulators, they can currently not be run locally to receive traffic from published apps.

Flutter Firebase In-App Messaging [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have just seen on Firebase that a new feature has been released called In-App Messaging. Is there already an idea somewhere how to get this to work with Flutter?
No, you cannot use it with flutter yet. A flutter plugin needs to be created to be able to use the In-App Messaging API
You can check all flutter plugins that enable Flutter apps to use one or more Firebase services here:
https://github.com/FirebaseExtended/flutterfire
EDIT
The flutter in-app messaging plugin is now available!
You can find more information about in the following link:
https://pub.dev/packages/firebase_in_app_messaging

Firebase cloud messaging (FCM) Admin - is it okay to store the service account API keys in the local storage [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
Is it secure to simply save it in the local storage along with my project files? Or is it safer to store them as environment variables?
I would in general advice against saving and pushing credential files into a repository for others to see.
You may consider encrypting you credential file. Everyone who has to work with the project then has to decrypt it first and you have control who receives the access to it.
Have a look Googles KMS: https://codelabs.developers.google.com/codelabs/cloud-encrypt-with-kms/index.html#0

Use Remote Config to set API Url in app - Good or Bad idea? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 5 years ago.
Improve this question
I have been reading a lot of articles in regards to security and other parties reverse engineering your app and then flooding your APIs etc.
For my current (nativescript) app I am using Firebase for Auth and then have my own API URL hardcoded into the app.
I am considering using Firebase Remote Config to retrieve my API URL and then setting it in the app. In order to not have my API URL exposed.
I was wondering if someone has done this before? And if this approach is a good or bad idea?
Thanks. Robert

Resources