Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@nrk/innlogging-dev

Package Overview
Dependencies
Maintainers
200
Versions
10
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nrk/innlogging-dev

latest
npmnpm
Version
0.2.0
Version published
Maintainers
200
Created
Source

innlogging-dev

A Connect-based middleware for authenticating test users in a local development environment.

Installation

npm install @nrk/innlogging-dev

It can be used as follows:

As a Vite plugin

import { loginDev } from '@nrk/innlogging-dev/vite';
import { defineConfig } from 'vite';

export default defineConfig({
  plugins: [
    loginDev({
      clientId: '<CLIENT_ID>',
      clientSecret: '<CLIENT_SECRET>',
      issuer: '<ISSUER>',
    }),
  ],
});

As a standalone HTTP server using the Connect middleware

import connect from 'connect';
import { loginDevConnect } from '@nrk/innlogging-dev/connect';

const app = connect();
app.use(
  '/_auth/web',
  loginDevConnect({
    clientId: '<CLIENT_ID>',
    clientSecret: '<CLIENT_SECRET>',
    issuer: '<ISSUER>',
  })
);
app.listen(3000);

Optional config

Both loginDev and loginDevConnect accept these additional options:

  • scopesstring[] of additional OAuth scopes to request alongside the defaults (openid, profile, email).
  • testUsers — override the built-in list of selectable test users. Each entry needs { name, username, password }. When omitted, a set of NRK test accounts is used.
loginDev({
  clientId: '<CLIENT_ID>',
  clientSecret: '<CLIENT_SECRET>',
  issuer: '<ISSUER>',
  testUsers: [
    {
      name: 'alice',
      username: 'alice@example.test',
      password: 'hunter2',
    },
  ],
});

Keywords

vite-plugin

FAQs

Package last updated on 29 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts