In my AngularFire app I am not authenticating users individually as we are using another auth system. The app works currently because the rules are not set
{
"rules": {
".read": true,
".write": true,
}
}
The app is authenticated and I can get an anonymous access token per user.
What do I need to change in my Angular app and rules so that only my app is allowed to read and write? For example this is an example of a real-time database request.
@NgModule({
imports: [
BrowserModule,
AngularFireModule.initializeApp(environment.firebase)
],
declarations: [ AppComponent ],
bootstrap: [ AppComponent ]
})
get(loc) {
return this.db.object(loc).valueChanges();
}
basically what do i do in my angular app to make the auth status available in the rules? right now i can anonymously auth but what do i do with that data so the database knows?