How to enable access of firestore data to my nativescript app only?

后端 未结 1 354
遇见更好的自我
遇见更好的自我 2021-01-29 03:34

I am developing android/ios app using Nativesript + angular. I want to display a ListView in my app. For that ListView, I want to use firestore databas

1条回答
  •  轻奢々
    轻奢々 (楼主)
    2021-01-29 03:54

    There is no way to limit access based on whether the users are using your app. Anyone who has the configuration data for your project, can use the API to access the backend services (such as Firestore) in that project. This is why access control must be based on authenticating a user (allowing you to identify each individual user), and then ensuring they can only access data they're authorized for (in security rules).

    If you don't want your users to have to sign in, you can use anonymous authentication. While this doesn't give you any information about the user, you can still identify them in security rules and thus limit their access based on what they've done.

    0 讨论(0)
提交回复
热议问题