This guide will help you get started with Nile Auth and Nuxt. This guide outlines the steps required to configure and integrate authentication in your application.
Create the base nile instance, extended with the nitro plugin
app/composables/useNile.ts
Copy
Ask AI
import { Nile } from "@niledatabase/server";import { nitro } from "@niledatabase/nitro";import type { withNitro } from "@niledatabase/nitro";export const nile = Nile<withNitro>({ debug: true, extensions: [nitro],}));
3
Add the route so that the APIs can be handled
server/api/[...slug].ts
Copy
Ask AI
import { nile } from "~/composables/useNile";export default defineEventHandler(nile.handlers);