Skip to main content
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.
If you have not done so yet, be sure you have obtained credentials from the console.
1

Install packages

2

Configure the extension

Create the base nile instance, extended with the nitro plugin
app/composables/useNile.ts
3
Add the route so that the APIs can be handled ts server/api/[...slug].ts import {nile} from "~/composables/useNile"; export default defineEventHandler(nile.handlers);

Client side

For requests in Vue, you can do the following
Not every API call is supported in the client. You may need to call some routes via the framework useFetch('/api/tenants'), or defineEventHandler
server/api/submit-invite.post.ts