Skip to content

Commit 98b11c6

Browse files
feat: Add nuxt-authorization module to config and define a default ability.
1 parent e4fb913 commit 98b11c6

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/fixtures/basic/nuxt.config.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export default defineNuxtConfig({
66
modules: [
77
MyModule,
88
'nuxt-auth-utils',
9+
'nuxt-authorization',
910
],
1011
runtimeConfig: {
1112
session: {
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { defineAbility } from 'nuxt-authorization/utils'
2+
3+
export default defineAbility(() => {
4+
return true
5+
})

0 commit comments

Comments
 (0)