0.7.0
We add global middleware out of the box, so you don't need to write your own. It's also configurable.
- You can disable it on some page using
definePageMeta
<script setup lang="ts">
import { definePageMeta } from '#imports'
definePageMeta({ auth: false })
</script>
- Or, if your page using other auth profile
<script setup lang="ts">
import { definePageMeta } from '#imports'
definePageMeta({ auth: 'github' })
</script>
- You prefer write your own? You can disabled it in
nuxt.config
export default defineNuxtConfig({
// ...
nuauth: {
// ...
middleware: false,
// ...
}
})
🚀 Features
🐞 Bug Fixes
- Little typo on state
enterprise
- by Ade Novid (4967d) - deps: