Hi guys,
How can I catch the permission denied error when user is trying to query a collection ?
Use case:
Collection is restricted by a firestore rule that will check the token claims
A token custom claim set by stripe will grant the permission
If while querying the collection firebase returns no permission I'd like to forward the user the subscription page but I cannot find a way to do that.
Any advice ?
Regards,