DomijKu
11/03/2022, 12:28 PMJason Bosco
11/03/2022, 2:37 PMDomijKu
11/04/2022, 3:32 PMJason Bosco
11/04/2022, 4:31 PMI was thinking though, would reading currentUserData from Firebase (e.g. their roles)You would have to do this on the backend (say in a Google Cloud function) - get the current role for the user (say RoleX), then generate a scoped API key on the fly which has an embedded filter in it, which has something like
filter_by:=roles:RoleX
, send that key to the frontend and have the FE use it to make API calls to Typesense.DomijKu
11/04/2022, 5:42 PMDomijKu
11/04/2022, 5:51 PMJason Bosco
11/04/2022, 6:00 PMDomijKu
11/04/2022, 6:12 PMJason Bosco
11/04/2022, 7:07 PM