Adding fields to next-auth session object with module augmentation

I'm trying to add an additional field to the next-auth session object. Having looked at the prisma logs (see pics) I can see this field is being read from in the prepared statement, however the session object being returned is of the default structure, and is not returning the additional fields specified in the interface
Screenshot_2024-01-30_032352.png
Screenshot_2024-01-30_032534.png
Screenshot_2024-01-30_032416.png
Was this page helpful?