dynamic routes in middleware with next-auth - Theo's Typesafe Cult