Obtain Shopify Access Token Through Endpoint For Marketing Analysis

I wanna build a Shopify App that once the user installs the app, the access token for that particular store be sent to my server endpoint to fetch draft order details for Marketing Analysis.

So I saw the overall workflow in Remix React Node Template, All the tokens are stored in the prisma databases (dev.sqlite). But when I am trying to load that file its telling me that the shopify app restricts using server side components on clients interface.

So how can I send the access token on my endpoint, Kindly tell me the procedure.