You can use the SpiceDB Watch API for this. For example, with the new Transaction Metadata support, you could:
- initiate the spicedb write with metadata including transaction_id=my_transaction_id
- then before redirecting, the frontend calls the backend on an endpoint that blocks by opening a Watch API to SpiceDB, and waits for SpiceDB to emit an event that includes that transaction_id
- the Watch API returns a zedtoken, so your backend can return that zedtoken so that the next redirect does a check with at_least_as_fresh