I have attached the root cause files here
I want to fetch the userrole of the table users and it ain't working via its session, after the user has loggedIn using his email & password. After the userrole is fetched from the Vercel/postgres db I want to conditional render either a logbook or manifest components. Also tried to use CoPilot & Ollama/8b with no success.

const {email} = session?