nuxt-modules / kinde

Kinde integration for Nuxt
72 stars 7 forks source link

Incorrect type of event.context.kinde #150

Open dawid-makowskki opened 1 month ago

dawid-makowskki commented 1 month ago

Hello, event.context.kinde is typed as any when used in defineEventHandler. This is strange as there is

declare module 'h3' {
  interface H3EventContext {
    kinde: KindeContext
  }
}

in /src/runtime/server/middleware/kinde.ts.

Steps to reproduce

  1. Clone this repository
  2. Follow README steps to run playground
  3. Create example API route and use event.context.kinde

Expected behavior

event.context.kinde should be of KindeContext type