npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@meistrari/auth-nuxt

v6.4.1

Published

A Nuxt module for authentication, organization management, and API key capabilities.

Readme

@meistrari/auth-nuxt

A Nuxt module for authentication, organization management, and API key capabilities.

Auth Types

This SDK supports two interactive authentication models:

  • Application Authentication (recommended): Use this for product applications that need end-user authentication and authorization scoped to a specific application. See Application Authentication Guide.
  • First-Party Authentication: Use this only for trusted first-party tools that interact directly with the Auth API in an administrative way, such as the Accounts Dashboard and Backoffice. See First-Party Authentication Guide.

For machine-to-machine authentication, use @meistrari/auth-core directly on the server. See the Client Credentials Guide.

Installation

bun add @meistrari/auth-nuxt

Quick Start

export default defineNuxtConfig({
  modules: ['@meistrari/auth-nuxt'],
  telaAuth: {
    apiUrl: 'https://auth.tela.com',
    application: {
      enabled: true,
      dashboardUrl: 'https://accounts.tela.com',
      applicationId: 'app_123',
      redirectUri: 'https://your-app.com/auth/callback',
    },
  },
})

Application auth auto-imports useTelaApplicationAuth() and the application-mode useTelaOrganization(), registers <TelaRole>, installs role directives, and adds SDK routes under /auth/* plus /api/auth/api-key/** and /api/auth/organization/**. useTelaApiKey() is also available; in application mode it targets the local API key proxy for app-scoped user API keys.

First-party auth auto-imports useTelaSession(), useTelaSessionAssurance(), useTelaOrganization(), and useTelaApiKey().

Runtime configuration

Set deployment-specific values under runtimeConfig.telaAuth. These take precedence over telaAuth module options, which provide defaults (including nested application settings).

export default defineNuxtConfig({
  modules: ['@meistrari/auth-nuxt'],
  telaAuth: {
    application: { enabled: true },
  },
  runtimeConfig: {
    telaAuth: {
      apiUrl: '',
      application: {
        applicationId: '',
        dashboardUrl: '',
        redirectUri: '',
      },
    },
  },
})

Override these values in the deployed server's environment without rebuilding:

NUXT_TELA_AUTH_API_URL=https://auth.example.com
NUXT_TELA_AUTH_ISSUER=https://auth.example.com
NUXT_AUTH_API_INTERNAL_URL=http://auth-api:3001
NUXT_TELA_AUTH_JWT_COOKIE_NAME=my-jwt
NUXT_TELA_AUTH_APPLICATION_APPLICATION_ID=app_123
NUXT_TELA_AUTH_APPLICATION_DASHBOARD_URL=https://accounts.example.com
NUXT_TELA_AUTH_APPLICATION_REDIRECT_URI=https://app.example.com/auth/callback
NUXT_TELA_AUTH_APPLICATION_LOGIN_PATH=/login
NUXT_TELA_AUTH_APPLICATION_UNAUTHORIZED_PATH=/unauthorized

The module declares these runtime keys even when omitted from your config. Server handlers read runtimeConfig.telaAuth; the SDK copies its supported settings to runtimeConfig.public.telaAuth per request for browser composables and plugins. These settings are public: do not use them for credentials or secrets.

issuer is the exact expected iss claim of application JWTs (the Auth API's BETTER_AUTH_URL). It defaults to apiUrl when empty. Set it explicitly when the URL used to reach Auth differs from its public identity. The internal URL controls server-side transport and JWKS retrieval; it must not replace the expected issuer. Neither the issuer nor the audience check is disabled.

NUXT_AUTH_API_INTERNAL_URL sets the internal URL. A bare AUTH_API_INTERNAL_URL is read only when the NUXT_ variable is empty.

application.enabled and skipServerMiddleware select registrations at build time; set them in telaAuth or runtimeConfig.telaAuth before building. Changing those flags in the deployed environment cannot change which routes or plugins were built. Static prerendered output retains the values from prerendering.

API Reference

See it on Pantry