redirect with withAuth middleware

my goal is to be able to check the user role and redirect to a custom page but as i can see you can just return true or false and when you return false you get redirected to the signin page
Was this page helpful?