As you may already know withPageAuthRequired just checks for authentication not authorization such as, does user have specific roles or not.
How can I check for authorization of a specific user, if user has specific roles or not?
While I’m not super familiar with NextJS, typically roles are added to an Access Token and are utilized that way - The following resources may be of help:
Regarding adding the roles as a custom claim to an Access Token, please see: