Skip to content

Commit

Permalink
nuxt-simple-auth
Browse files Browse the repository at this point in the history
  • Loading branch information
@aslan.gama.solluti committed Dec 16, 2023
1 parent e5d996c commit 1f3da4c
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/index.js β†’ src/module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,12 @@ export default defineNuxtModule({
name: PACKAGE_NAME,
configKey: 'auth'
},
async setup(options, nuxt) {
async setup(options, nuxt: any) {
const logger = useLogger(PACKAGE_NAME)

// @ts-ignore
const {resolve} = createResolver(import.meta.url)
const runtimeConfig = nuxt.options.auth;
const runtimeConfig = nuxt.options?.auth;

nuxt.options.runtimeConfig['nuxt-simple-auth'] = runtimeConfig;

Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit 1f3da4c

Please sign in to comment.