How to check the id from Next Auth session against database to authorize certain api routes.

Original message was deleted