auth-redirect

raw JSON →
0.0.4 verified Sat Apr 25 auth: no javascript

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.

error Cannot find module 'auth-redirect'
cause package not installed or not required correctly
fix
npm install auth-redirect and then require it or let seneca-auth load it.
error Error: auth-redirect plugin not found
cause Seneca framework cannot locate the plugin
fix
Ensure auth-redirect is installed and registered via seneca.use('auth-redirect').
gotcha auth-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.
deprecated This package is not actively maintained; it is tied to Seneca v3 ecosystem.
fix Consider migrating to Seneca v3+ and using seneca-auth.
gotcha No documentation beyond README; code may have breaking changes between minor versions.
fix Pin to exact version if using directly.
npm install auth-redirect
yarn add auth-redirect
pnpm add auth-redirect

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');
});