I am trying to update to use Checkout Extensions, the server is using Remix. Previously I could access the admin to make GRAPHQL requests to the store when the request came thought the App Proxy ( code in the “Additional scripts” section would make a fetch to the app proxy)
const {admin, session} = await authenticate.public.appProxy(request)
Because checkout extension can’t use the app proxy ( for password protected sites), I am trying to get the admin on the server and pass a bearer token from the checkout extension.
I get the session token inside the extension
const token = await sessionToken.get();
I have verified the token on the server, but how do I get the admin client so I can make the graphql requests (e.g. admin.graphql(“blah”))?