Skip to content

Commit

Permalink
fix(debug): 🔇 Added page extend to remove vue router warning
Browse files Browse the repository at this point in the history
  • Loading branch information
itpropro committed Aug 28, 2024
1 parent c40b17b commit 5a8b76e
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/module.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { defineNuxtModule, addPlugin, createResolver, addImportsDir, addServerHandler, useLogger, extendRouteRules, addRouteMiddleware, addServerPlugin } from '@nuxt/kit'
import { defineNuxtModule, addPlugin, createResolver, addImportsDir, addServerHandler, useLogger, extendRouteRules, addRouteMiddleware, addServerPlugin, extendPages } from '@nuxt/kit'
import { defu } from 'defu'
import * as providerPresets from './runtime/providers'
import type { OidcProviderConfig, ProviderConfigs, ProviderKeys } from './runtime/types/oidc'
Expand Down Expand Up @@ -284,6 +284,11 @@ export default defineNuxtModule<ModuleOptions>({
route: `/auth/${provider}/callback`,
method: 'post'
})
extendPages((pages) => {
pages.push({
path: `/auth/${provider}/callback`,
})
})
// Add logout handler
addServerHandler({
handler: resolve('./runtime/server/handler/logout.get'),
Expand Down

0 comments on commit 5a8b76e

Please sign in to comment.