Zach
getting Nuxt context into a nitro route
Hey guys, I'm trying to create an adapter for our auth provider, logto, and it's proving to be a bit more difficult than I expected. Originally I was accessing our logto context via nuxtApp.ssrContext?.event.context.logtoClient
unfortunately this doesn't work client sided, as you might expect, so I decided to create a nitro route for client requests to go through.
Unfortunately, I found out I can't access nuxtApp in nitro routes. Does anyone know how I can get that injected context into a nitro route?
9 replies
defineComponent equivalent
Howdy friends! Sorry for the noob questions, I'm trying to figure out what the defineComponent equivalent is for Nuxt 3. I have this section of code that I'm trying to make work, but I can't quite figure it out. I thought it was defineNuxtComponent, but I believe it is structured a bit differently:
1 replies