NextAuth How to Role-Based Authentification?

I came across the following issue.
As at https://next-auth.js.org/v3/getting-started/client#custom-client-session-handling explained,I can simple add an authentification check to each website by adding the
AdminDashboard.auth = true
to every page i want it.

But as roughly explained in the docs

AdminDashboard.auth = 
{
  role: "admin",
  loading: <AdminLoadingSkeleton />,
  unauthorized: "/login-with-different-user", // redirect to this url
}

this should make it possible to simply add a role-based-auth to each website so my question is:

How would this work? I’ve tried it out by changing the role: “admin” to role_id: 1, as I use role_id’s in my session but it won’t work and does not throw any errors.

Any ideas?