Admin routes and security. How to set this up?
Hi! What is a good way of protecting admin routes? The ideal situation is, that whenever an user goes to an admin route it:
1. Does not fetch the data
2. Will get redirected back to a specific page
Right now when I throw a TRPC error, it takes a super long time until the error is shown.. It fetches like 7-8 times and returns error = null
admin route:
1. Does not fetch the data
2. Will get redirected back to a specific page
Right now when I throw a TRPC error, it takes a super long time until the error is shown.. It fetches like 7-8 times and returns error = null
admin route:
