Registry / auth-security / auth-redirect

auth-redirect

JSON →
library0.0.4jsnpmunverified

auth-redirect is a Seneca internal module for handling authentication redirects. Version 0.0.4 is the latest stable release. It is designed to be used internally by seneca-auth and is not intended for direct use. Release cadence is low; it is a minor utility within the Seneca ecosystem. Key differentiator: it is a plugin that is automatically loaded by seneca-auth, removing the need for manual setup.

npm install auth-redirect
INSTALL
IMPORT
SIG · AUTH-REDIRECT
A
auth-redirect
auth-securityjavascriptv0.0.4
Install
Import
Disk
Pass rate
0/ 6
Env Coverage0 / 6
glibc
1822
musl
1822
Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
musl
node 18226 runs
build_error
glibc
node 18226 runs
build_error
Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

authRedirect
import { authRedirect } from 'auth-redirect'
const authRedirect = require('auth-redirect')
ESM import; its a named export. Only used internally by seneca-auth.
default
import authRedirect from 'auth-redirect'
const { default } = require('auth-redirect')
Default import available; typically not used directly by consumer code.
Seneca plugin registration
require('seneca').use('auth-redirect')
CommonJS pattern: plugin loaded via use() in Seneca. Not typically done manually.

Initializes Seneca and loads auth-redirect plugin (though normally loaded automatically by seneca-auth).

const Seneca = require('seneca'); const seneca = Seneca(); seneca.use('auth-redirect'); seneca.ready(() => { console.log('auth-redirect plugin loaded'); });
Debug
Known issues
gotchaauth-redirect is an internal module for seneca-auth and should not be used directly in most cases.
fix
Use seneca-auth instead, which automatically includes auth-redirect.
affects: all
deprecatedThis package is not actively maintained; it is tied to Seneca v3 ecosystem.
fix
Consider migrating to Seneca v3+ and using seneca-auth.
affects: >=0.0.0
gotchaNo documentation beyond README; code may have breaking changes between minor versions.
fix
Pin to exact version if using directly.
affects: all
Errors
Common errors & fixes
Cannot find module 'auth-redirect'
package not installed or not required correctly
fix
npm install auth-redirect and then require it or let seneca-auth load it.
Error: auth-redirect plugin not found
Seneca framework cannot locate the plugin
fix
Ensure auth-redirect is installed and registered via seneca.use('auth-redirect').
Upgrade
Version history
0.0.4latest on npm
Audit
Dependencies
senecarequiredPeer dependency: requires Seneca framework to function
seneca-authrequiredLoaded by seneca-auth; used internally for redirect handling
Agent activity
24 hits · last 30 days
node
22
OpenAI (training)
1
Resources
auth-redirect — npm install auth-redirect · libregistry