Closed rarelywin closed 2 months ago
Please, make sure that you use .default
in your configuration like so:
https://github.com/sidebase/nuxt-auth/blob/ab772fdc8bed645e5f8ee518adc25f087c08dfe0/playground-authjs/server/api/auth/%5B...%5D.ts#L9-L10
It is a bug with next-auth
with Vite which forces such a workaround. This won't be needed with authjs
in the future.
Environment
Build Modules: -
Reproduction
-
Describe the bug
server just not launching but should be, there is my [...].ts config
import { NuxtAuthHandler } from '#auth' import DiscordProvider from 'next-auth/providers/discord';
export default NuxtAuthHandler({ secret: useRuntimeConfig().authSecret, providers: [ DiscordProvider({ clientId: '', clientSecret: '' }) ], })
Additional context
No response
Logs