atinux / nuxt-auth-utils

Add Authentication to Nuxt applications with secured & sealed cookies sessions.
MIT License
973 stars 91 forks source link

RollupError - Teach me how to import defineOAuth.*EventHandlers in my custom Module #245

Open navanjr opened 1 month ago

navanjr commented 1 month ago

I have notice that since v0.3.0 each oAuth providers event handler are exported individually instead of just oauth. I assumed these eventHandler would be available for import from #imports. However I get...

[nitro 2:04:38 PM] ERROR RollupError: node_modules/my-org/my-auth/dist/runtime/common/server/routes/auth/discord.get.mjs (2:9): "defineOAuthDiscordEventHandler" is not exported by "virtual:#imports", imported by "node_modules/my-org/my-auth/dist/runtime/common/server/routes/auth/discord.get.mjs".

Auto import and explicit import from #imports both work in for all eventHandlers in my playground but not in my custom module.

atinux commented 1 month ago

Hi! A reproduction would help actually :)