message: Fix middleware typings
diff: // https://next-auth.js.org/configuration/nextjs#middleware
  import { isAdmin } from 'common/util/roles'
  -import { getToken } from 'next-auth/jwt'
  import withAuth from 'next-auth/middleware'
  +import { useSession } from 'next-auth/react'
  export default withAuth({
  callbacks: {
  - authorized: async ({ req }) => {
  - const jwt = await getToken({ req })
  - return isAdmin(jwt)
  + authorized: async () => {
  + const { data: session } = useSession()
  + return isAdmin(session)
  },
  },
  })
  