Is there any way to use new Angularfire2 guards (AngularFireAuthGuard) to check the user custom claims (https://firebase.google.com/docs/auth/admin/custom-claims) for content display?
I have a button like "Edit Article" that I just want to display for users that have the "editor" custom claim.
I want something like this, but for content display not for route access control:
// This pipe will only allow users with the editor role to access the route
// { path: 'articles/:id/edit', component: ArticleEditComponent, ...canActivate(editorOnly) }
const editorOnly = pipe(customClaims, map(claims => claims.role === "editor"));