---
title: "nuxt-backend"
description: "Every export of nuxt-backend, with its signature and where it is defined."
canonical_url: "https://nuxt-backend.dev/docs/reference/api/module"
---
# nuxt-backend

Version: nuxt-backend 0.6.x · Tab: Reference · Kind: reference · Status: stable

Every page: [llms.txt](https://nuxt-backend.dev/llms.txt) · Skill for coding agents: [nuxt-backend](https://nuxt-backend.dev/.well-known/skills/nuxt-backend/SKILL.md)

Commands use npm; use your project's package manager.

## Interfaces

### InstallableOptions

Defined in: [src/installable.ts](https://github.com/qruto/nuxt-backend/blob/main/src/installable.ts)

`backend.installable` in nuxt.config: what the manifest says beyond the
brand's name, or `false` for no manifest at all.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="themecolor">
        
      </a>
      
       <code>
        themeColor?
      </code>
    </td>
    
    <td>
      | <code>
        string
      </code>
      
       | { <code>
        light
      </code>
      
      : <code>
        string
      </code>
      
      ; <code>
        dark
      </code>
      
      : <code>
        string
      </code>
      
      ; }
    </td>
    
    <td>
      The colour of the browser's title bar and the task switcher for the installed app, and of the address bar on Android: one colour, or one per scheme (<code>
        { light, dark }
      </code>
      
      ), which the pages also carry as <code>
        theme-color
      </code>
      
       meta tags. Default: none, the browser's own.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/installable.ts" rel="nofollow">
        src/installable.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="backgroundcolor">
        
      </a>
      
       <code>
        backgroundColor?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The splash screen's background while the installed app opens. Default: the theme colour, its light one.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/installable.ts" rel="nofollow">
        src/installable.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="description">
        
      </a>
      
       <code>
        description?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      One line on what the app does, in the install dialog.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/installable.ts" rel="nofollow">
        src/installable.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="id">
        
      </a>
      
       <code>
        id?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The app's identity, a path on the site (<code>
        /
      </code>
      
      , <code>
        /?app
      </code>
      
      ): what a browser tells one installed app from another by. Set it before the first install and never change it, or every install becomes a second app. Default: none, which a browser reads as <code>
        start_url
      </code>
      
       (<code>
        /
      </code>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/installable.ts" rel="nofollow">
        src/installable.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="lang">
        
      </a>
      
       <code>
        lang?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The language the manifest's name and description are in, a language tag (<code>
        en
      </code>
      
      , <code>
        pt-BR
      </code>
      
      ). Default: none.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/installable.ts" rel="nofollow">
        src/installable.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="orientation">
        
      </a>
      
       <code>
        orientation?
      </code>
    </td>
    
    <td>
      | <code>
        "any"
      </code>
      
       | <code>
        "natural"
      </code>
      
       | <code>
        "landscape"
      </code>
      
       | <code>
        "landscape-primary"
      </code>
      
       | <code>
        "landscape-secondary"
      </code>
      
       | <code>
        "portrait"
      </code>
      
       | <code>
        "portrait-primary"
      </code>
      
       | <code>
        "portrait-secondary"
      </code>
    </td>
    
    <td>
      The orientation the installed app opens in: <code>
        any
      </code>
      
      , <code>
        natural
      </code>
      
      , <code>
        portrait
      </code>
      
       or <code>
        landscape
      </code>
      
      , or a <code>
        -primary
      </code>
      
       or <code>
        -secondary
      </code>
      
       one of the last two. Default: none, the device's.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/installable.ts" rel="nofollow">
        src/installable.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="icons">
        
      </a>
      
       <code>
        icons?
      </code>
    </td>
    
    <td>
      <code>
        Readonly
      </code>
      
      <<code>
        Record
      </code>
      
      <<code>
        192
      </code>
      
       | <code>
        512
      </code>
      
      , <code>
        string
      </code>
      
      >>
    </td>
    
    <td>
      The two icons, by their path on the site (<code>
        /icons/app-192.png
      </code>
      
      ) when they are not where the module looks: <code>
        icon-192.png
      </code>
      
       and <code>
        icon-512.png
      </code>
      
       in <code>
        public/
      </code>
      
      , else RealFaviconGenerator's <code>
        web-app-manifest-192x192.png
      </code>
      
       and <code>
        web-app-manifest-512x512.png
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/installable.ts" rel="nofollow">
        src/installable.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="maskable">
        
      </a>
      
       <code>
        maskable?
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
      
       | <code>
        Readonly
      </code>
      
      <<code>
        Record
      </code>
      
      <<code>
        192
      </code>
      
       | <code>
        512
      </code>
      
      , <code>
        string
      </code>
      
      >>
    </td>
    
    <td>
      Maskable icons: full-bleed artwork a platform crops to its own shape. Their two paths; or <code>
        true
      </code>
      
       when the two icons are full-bleed already, so each is listed for both purposes. Default: <code>
        icon-maskable-192.png
      </code>
      
       and <code>
        icon-maskable-512.png
      </code>
      
       when <code>
        public/
      </code>
      
       holds them, else none.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/installable.ts" rel="nofollow">
        src/installable.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="browserbanner">
        
      </a>
      
       <code>
        browserBanner?
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Chrome's own install banner on Android (the mini-infobar), which it shows on a visit once the app is installable: <code>
        false
      </code>
      
       stops it, so the app's own button (<code>
        useInstallPrompt()
      </code>
      
      ) offers the install instead. The module then cancels <code>
        beforeinstallprompt
      </code>
      
       as the event fires, which no component can do once it mounts. Default: <code>
        true
      </code>
      
      , the banner shows, and <code>
        useInstallPrompt()
      </code>
      
       opens the dialog from a button all the same.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/installable.ts" rel="nofollow">
        src/installable.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### ModuleRedirectsOptions

Defined in: [src/module.ts](https://github.com/qruto/nuxt-backend/blob/main/src/module.ts)

Where the ready-made pages send a person once they are done.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="aftersignin">
        
      </a>
      
       <code>
        afterSignIn?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Where the sign-in page sends a person after they sign in, when the <code>
        ?redirect=
      </code>
      
       the page guard added names no page of this site. A path of this site, such as <code>
        /app
      </code>
      
      . Default <code>
        /
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/module.ts" rel="nofollow">
        src/module.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### ModuleOptions

Defined in: [src/module.ts](https://github.com/qruto/nuxt-backend/blob/main/src/module.ts)

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="url">
        
      </a>
      
       <code>
        url?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The deployment's URL (the <code>
        .convex.cloud
      </code>
      
       origin). Else <code>
        NUXT_PUBLIC_BACKEND_URL
      </code>
      
      , else derived from <code>
        CONVEX_DEPLOYMENT
      </code>
      
      . The HTTP-routes origin (<code>
        .convex.site
      </code>
      
      ) derives from it; a custom domain in front of them goes in <code>
        NUXT_PUBLIC_CONVEX_SITE_URL
      </code>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/module.ts" rel="nofollow">
        src/module.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="auth">
        
      </a>
      
       <code>
        auth?
      </code>
    </td>
    
    <td>
      <a href="#authprovider">
        <code>
          AuthProvider
        </code>
      </a>
    </td>
    
    <td>
      Which auth the app runs. <code>
        'better-auth'
      </code>
      
       (the default) is the package's own: passwordless sign-in, the pages, the page guard, workspaces, billing, AI credits and the account features. <code>
        'convex-auth'
      </code>
      
       runs the base module's Convex Auth integration instead (<code>
        @convex-dev/auth
      </code>
      
      : magic links, OAuth, passkeys, passwords), sign-in only: every feature above is off. Experimental. See <a href="https://nuxt-backend.dev/docs/build/auth/convex-auth" rel="nofollow">
        https://nuxt-backend.dev/docs/build/auth/convex-auth
      </a>
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/module.ts" rel="nofollow">
        src/module.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="authroute">
        
      </a>
      
       <code>
        authRoute?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      -
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/module.ts" rel="nofollow">
        src/module.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="pages">
        
      </a>
      
       <code>
        pages?
      </code>
    </td>
    
    <td>
      <code>
        ModulePagesOptions
      </code>
    </td>
    
    <td>
      Where the ready-made pages mount (sign-in, pricing, settings, profile, security and the invitation pages). Every page is on; give a key a path to move it, or <code>
        false
      </code>
      
       to turn it off. To replace a page, put an app page at its path: an app page always wins over the module's.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/module.ts" rel="nofollow">
        src/module.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="redirects">
        
      </a>
      
       <code>
        redirects?
      </code>
    </td>
    
    <td>
      <a href="#moduleredirectsoptions">
        <code>
          ModuleRedirectsOptions
        </code>
      </a>
    </td>
    
    <td>
      Where the ready-made pages send a person once they are done. See <a href="#moduleredirectsoptions">
        ModuleRedirectsOptions
      </a>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/module.ts" rel="nofollow">
        src/module.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="devtools">
        
      </a>
      
       <code>
        devtools?
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      The Backend tab in Nuxt DevTools (dev only): the deployment and its env names, live checks and doctor on demand, the signed-in account, billing, email and the webhook delivery log. Enabled by default whenever Nuxt DevTools is; set <code>
        false
      </code>
      
       to disable just the Backend tab.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/module.ts" rel="nofollow">
        src/module.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="css">
        
      </a>
      
       <code>
        css?
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      The package's stylesheets (default <code>
        true
      </code>
      
      ): the <code>
        --bk-*
      </code>
      
       tokens on <code>
        :root
      </code>
      
       and the styles of each detected capability's components, inside <code>
        @layer nuxt-backend
      </code>
      
      , so any rule of the app's wins. <code>
        false
      </code>
      
       loads no package CSS: the components keep their markup, <code>
        data-*
      </code>
      
       hooks and accessibility attributes, unstyled.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/module.ts" rel="nofollow">
        src/module.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="installable">
        
      </a>
      
       <code>
        installable?
      </code>
    </td>
    
    <td>
      <code>
        false
      </code>
      
       | <a href="#installableoptions">
        <code>
          InstallableOptions
        </code>
      </a>
    </td>
    
    <td>
      The web app manifest the module serves once <code>
        public/
      </code>
      
       holds two icons and app config names the brand: its theme and background colours, a description, the icons' paths and maskable icons. <code>
        false
      </code>
      
       serves none. See <a href="#installableoptions">
        InstallableOptions
      </a>
      
      .
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/module.ts" rel="nofollow">
        src/module.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="chunkrecovery">
        
      </a>
      
       <code>
        chunkRecovery?
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Reload a page once when its code fails to load before the app has started, its first page rendered in full, hydration included (default <code>
        true
      </code>
      
      ): a module script or stylesheet from <code>
        app.buildAssetsDir
      </code>
      
       that fails before the page has loaded, or a dynamic import that fails before the first render resolves, as a flaky connection or a deploy that replaced the chunks under an open page leaves it. An inline script first in the head of a production build, with the request's nonce, and a guard of its own in <code>
        sessionStorage
      </code>
      
      , so a page reloads once, never in a loop. <code>
        false
      </code>
      
       leaves it out. With <code>
        security: false
      </code>
      
       the package sends no Content-Security-Policy, and the script carries no nonce. A policy of the app's own must then allow it, with <code>
        'unsafe-inline'
      </code>
      
       in <code>
        script-src
      </code>
      
       or a nonce of its own put on every script in the head, or the browser blocks it and reports a violation on every page; such an app sets <code>
        chunkRecovery: false
      </code>
      
       otherwise.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/module.ts" rel="nofollow">
        src/module.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AdminTabMeta

Defined in: [src/runtime/vue/components/admin/admin-tabs.ts](https://github.com/qruto/nuxt-backend/blob/main/src/runtime/vue/components/admin/admin-tabs.ts)

What a page of the app says to join the console's tab bar:
`definePageMeta({ adminTab: { label, icon, order } })` on a page under the
console's path (`app/pages/admin/featured.vue` is `/admin/featured`).

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="label">
        
      </a>
      
       <code>
        label
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The tab's words.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/runtime/vue/components/admin/admin-tabs.ts" rel="nofollow">
        src/runtime/vue/components/admin/admin-tabs.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="icon">
        
      </a>
      
       <code>
        icon?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      An icon class (<code>
        i-lucide-star
      </code>
      
      ) drawn before the label, for an app that has an icon set; the label always shows.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/runtime/vue/components/admin/admin-tabs.ts" rel="nofollow">
        src/runtime/vue/components/admin/admin-tabs.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="order">
        
      </a>
      
       <code>
        order?
      </code>
    </td>
    
    <td>
      <code>
        number
      </code>
    </td>
    
    <td>
      Where the tab sits: lower first. The built-in tabs are 10 to 170, ten apart. Default: after them. Equal orders sort by label.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/runtime/vue/components/admin/admin-tabs.ts" rel="nofollow">
        src/runtime/vue/components/admin/admin-tabs.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### PageAccessRules

Defined in: [src/runtime/vue/utils/access-rules.ts](https://github.com/qruto/nuxt-backend/blob/main/src/runtime/vue/utils/access-rules.ts)

Who may open a page, as `definePageMeta({ auth: { … } })` declares it.
A page with rules requires a sign-in, as `auth: true` does, and then every
rule it names: a signed-in person who fails one gets a 403, shown with
`<AccessDenied>`, or a 404 when the page is `hidden`. A parent page's
rules apply to its children too.

The page guard is for the screen only. Every backend function the page
calls checks the caller again (`authed`, `workspace`, `admin`, `withRole`,
`withFeature`).

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="role">
        
      </a>
      
       <code>
        role?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | readonly <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      An app-wide role, or several: any one passes (<code>
        useAuth().hasRole
      </code>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/runtime/vue/utils/access-rules.ts" rel="nofollow">
        src/runtime/vue/utils/access-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="workspace">
        
      </a>
      
       <code>
        workspace?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
      
       | <code>
        true
      </code>
      
       | readonly <code>
        string
      </code>
      
      <span>
        
      </span>
    </td>
    
    <td>
      The active workspace: <code>
        true
      </code>
      
       lets in any member, a built-in role or a list of them (<code>
        'owner'
      </code>
      
      , <code>
        ['owner', 'admin']
      </code>
      
      ) only those who hold one there. Read fresh from the auth server on each guarded navigation. Without an active workspace the page is refused.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/runtime/vue/utils/access-rules.ts" rel="nofollow">
        src/runtime/vue/utils/access-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="feature">
        
      </a>
      
       <code>
        feature?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      A feature the active workspace's plan includes, by its catalog key (<code>
        useFeatures().has
      </code>
      
      ).
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/runtime/vue/utils/access-rules.ts" rel="nofollow">
        src/runtime/vue/utils/access-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="hidden">
        
      </a>
      
       <code>
        hidden?
      </code>
    </td>
    
    <td>
      <code>
        boolean
      </code>
    </td>
    
    <td>
      Changes no check: a person the rules refuse gets a 404 instead of the 403, and a signed-out visitor one too instead of the sign-in page, so the page's existence stays private.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/runtime/vue/utils/access-rules.ts" rel="nofollow">
        src/runtime/vue/utils/access-rules.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### AccessDeniedData

Defined in: [src/runtime/vue/utils/access-rules.ts](https://github.com/qruto/nuxt-backend/blob/main/src/runtime/vue/utils/access-rules.ts)

What the guard's 403 carries in `error.data`.

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="reason">
        
      </a>
      
       <code>
        reason
      </code>
    </td>
    
    <td>
      <a href="#accessdeniedreason">
        <code>
          AccessDeniedReason
        </code>
      </a>
    </td>
    
    <td>
      The rule the person failed.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/runtime/vue/utils/access-rules.ts" rel="nofollow">
        src/runtime/vue/utils/access-rules.ts
      </a>
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="path">
        
      </a>
      
       <code>
        path
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      The page they asked for, as a path of this site: where signing in as someone else returns to.
    </td>
    
    <td>
      <a href="https://github.com/qruto/nuxt-backend/blob/main/src/runtime/vue/utils/access-rules.ts" rel="nofollow">
        src/runtime/vue/utils/access-rules.ts
      </a>
    </td>
  </tr>
</tbody>
</table>

---

### BackendAuthService

Defined in: node_modules/nuxt-convex-module/runtime/better-auth/nuxt/server

Per-request Better Auth + Convex helper returned by [convexBetterAuthNuxt](https://nuxt-convex-module.dev/api-reference/reference/better-auth/server).

#### Properties

<table>
<thead>
  <tr>
    <th>
      Property
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <a id="gettoken">
        
      </a>
      
       <code>
        getToken
      </code>
    </td>
    
    <td>
      () => <code>
        Promise
      </code>
      
      <<code>
        string
      </code>
      
       | <code>
        undefined
      </code>
      
      >
    </td>
    
    <td>
      Convex JWT for the current user, or <code>
        undefined
      </code>
      
       when not authenticated.
    </td>
    
    <td>
      node_modules/nuxt-convex-module/runtime/better-auth/nuxt/server
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="handler">
        
      </a>
      
       <code>
        handler
      </code>
    </td>
    
    <td>
      () => <code>
        Promise
      </code>
      
      <<code>
        Response
      </code>
      
      >
    </td>
    
    <td>
      Proxy a Better Auth route to the configured Convex site URL.
    </td>
    
    <td>
      node_modules/nuxt-convex-module/runtime/better-auth/nuxt/server
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="isauthenticated">
        
      </a>
      
       <code>
        isAuthenticated
      </code>
    </td>
    
    <td>
      () => <code>
        Promise
      </code>
      
      <<code>
        boolean
      </code>
      
      >
    </td>
    
    <td>
      <code>
        true
      </code>
      
       when the current request has a valid Convex auth token.
    </td>
    
    <td>
      node_modules/nuxt-convex-module/runtime/better-auth/nuxt/server
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="preloadauthquery">
        
      </a>
      
       <code>
        preloadAuthQuery
      </code>
    </td>
    
    <td>
      <<code>
        Query
      </code>
      
      >(<code>
        query
      </code>
      
      , ...<code>
        args
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        Preloaded
      </code>
      
      <<code>
        Query
      </code>
      
      >>
    </td>
    
    <td>
      Preload a Convex query with the current user's auth token.
    </td>
    
    <td>
      node_modules/nuxt-convex-module/runtime/better-auth/nuxt/server
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="fetchauthquery">
        
      </a>
      
       <code>
        fetchAuthQuery
      </code>
    </td>
    
    <td>
      <<code>
        Query
      </code>
      
      >(<code>
        query
      </code>
      
      , ...<code>
        args
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        FunctionReturnType
      </code>
      
      <<code>
        Query
      </code>
      
      >>
    </td>
    
    <td>
      Execute a Convex query with the current user's auth token.
    </td>
    
    <td>
      node_modules/nuxt-convex-module/runtime/better-auth/nuxt/server
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="fetchauthmutation">
        
      </a>
      
       <code>
        fetchAuthMutation
      </code>
    </td>
    
    <td>
      <<code>
        Mutation
      </code>
      
      >(<code>
        mutation
      </code>
      
      , ...<code>
        args
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        FunctionReturnType
      </code>
      
      <<code>
        Mutation
      </code>
      
      >>
    </td>
    
    <td>
      Execute a Convex mutation with the current user's auth token.
    </td>
    
    <td>
      node_modules/nuxt-convex-module/runtime/better-auth/nuxt/server
    </td>
  </tr>
  
  <tr>
    <td>
      <a id="fetchauthaction">
        
      </a>
      
       <code>
        fetchAuthAction
      </code>
    </td>
    
    <td>
      <<code>
        Action
      </code>
      
      >(<code>
        action
      </code>
      
      , ...<code>
        args
      </code>
      
      ) => <code>
        Promise
      </code>
      
      <<code>
        FunctionReturnType
      </code>
      
      <<code>
        Action
      </code>
      
      >>
    </td>
    
    <td>
      Execute a Convex action with the current user's auth token.
    </td>
    
    <td>
      node_modules/nuxt-convex-module/runtime/better-auth/nuxt/server
    </td>
  </tr>
</tbody>
</table>

## Type Aliases

### AuthProvider

```ts
type AuthProvider = "better-auth" | "convex-auth";
```

Defined in: [src/nuxt/auth-provider.ts](https://github.com/qruto/nuxt-backend/blob/main/src/nuxt/auth-provider.ts)

The two auth providers: `'better-auth'` (the default) and `'convex-auth'`.

---

### AccessDeniedReason

```ts
type AccessDeniedReason = "role" | "workspace" | "feature" | "banned";
```

Defined in: [src/runtime/vue/utils/access-rules.ts](https://github.com/qruto/nuxt-backend/blob/main/src/runtime/vue/utils/access-rules.ts)

Why the page guard refused a signed-in person: the rule they failed.

---

### BackendAuthOptions

```ts
type BackendAuthOptions = GetTokenOptions & {
  convexUrl?: string;
  convexSiteUrl?: string;
};
```

Defined in: node_modules/nuxt-convex-module/runtime/better-auth/nuxt/server

Options for [convexBetterAuthNuxt](https://nuxt-convex-module.dev/api-reference/reference/better-auth/server).

Extends [GetTokenOptions](https://labs.convex.dev/better-auth) from `@convex-dev/better-auth/utils` with
an optional override for the Convex site URL.

#### Type Declaration

<table>
<thead>
  <tr>
    <th>
      Name
    </th>
    
    <th>
      Type
    </th>
    
    <th>
      Description
    </th>
    
    <th>
      Defined in
    </th>
  </tr>
</thead>

<tbody>
  <tr>
    <td>
      <code>
        convexUrl?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Accepted for drop-in compatibility with upstream <code>
        convexBetterAuthNextJs
      </code>
      
       option objects and ignored — upstream requires but never reads it either; the deployment URL comes from runtime config.
    </td>
    
    <td>
      node_modules/nuxt-convex-module/runtime/better-auth/nuxt/server
    </td>
  </tr>
  
  <tr>
    <td>
      <code>
        convexSiteUrl?
      </code>
    </td>
    
    <td>
      <code>
        string
      </code>
    </td>
    
    <td>
      Override the Convex site URL. Defaults to <code>
        runtimeConfig.public.convex.siteUrl
      </code>
      
      , then the <code>
        NUXT_PUBLIC_CONVEX_SITE_URL
      </code>
      
       process variable.
    </td>
    
    <td>
      node_modules/nuxt-convex-module/runtime/better-auth/nuxt/server
    </td>
  </tr>
</tbody>
</table>

## Variables

### default

```ts
default: NuxtModule<ModuleOptions, ModuleOptions, false>;
```

Defined in: [src/module.ts](https://github.com/qruto/nuxt-backend/blob/main/src/module.ts)


## Sitemap

See the full [sitemap](https://nuxt-backend.dev/sitemap.md) for all pages.
