{"id":18135,"library":"auth-redirect","title":"auth-redirect","description":"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.","status":"active","version":"0.0.4","language":"javascript","source_language":"en","source_url":"https://github.com/senecajs/auth-redirect","tags":["javascript","seneca","auth","redirect"],"install":[{"cmd":"npm install auth-redirect","lang":"bash","label":"npm"},{"cmd":"yarn add auth-redirect","lang":"bash","label":"yarn"},{"cmd":"pnpm add auth-redirect","lang":"bash","label":"pnpm"}],"dependencies":[{"reason":"Peer dependency: requires Seneca framework to function","package":"seneca","optional":false},{"reason":"Loaded by seneca-auth; used internally for redirect handling","package":"seneca-auth","optional":false}],"imports":[{"note":"ESM import; its a named export. Only used internally by seneca-auth.","wrong":"const authRedirect = require('auth-redirect')","symbol":"authRedirect","correct":"import { authRedirect } from 'auth-redirect'"},{"note":"Default import available; typically not used directly by consumer code.","wrong":"const { default } = require('auth-redirect')","symbol":"default","correct":"import authRedirect from 'auth-redirect'"},{"note":"CommonJS pattern: plugin loaded via use() in Seneca. Not typically done manually.","wrong":"","symbol":"Seneca plugin registration","correct":"require('seneca').use('auth-redirect')"}],"quickstart":{"code":"const Seneca = require('seneca');\nconst seneca = Seneca();\nseneca.use('auth-redirect');\nseneca.ready(() => {\n  console.log('auth-redirect plugin loaded');\n});","lang":"javascript","description":"Initializes Seneca and loads auth-redirect plugin (though normally loaded automatically by seneca-auth)."},"warnings":[{"fix":"Use seneca-auth instead, which automatically includes auth-redirect.","message":"auth-redirect is an internal module for seneca-auth and should not be used directly in most cases.","severity":"gotcha","affected_versions":"all"},{"fix":"Consider migrating to Seneca v3+ and using seneca-auth.","message":"This package is not actively maintained; it is tied to Seneca v3 ecosystem.","severity":"deprecated","affected_versions":">=0.0.0"},{"fix":"Pin to exact version if using directly.","message":"No documentation beyond README; code may have breaking changes between minor versions.","severity":"gotcha","affected_versions":"all"}],"env_vars":null,"last_verified":"2026-04-25T00:00:00.000Z","next_check":"2026-07-24T00:00:00.000Z","problems":[{"fix":"npm install auth-redirect and then require it or let seneca-auth load it.","cause":"package not installed or not required correctly","error":"Cannot find module 'auth-redirect'"},{"fix":"Ensure auth-redirect is installed and registered via seneca.use('auth-redirect').","cause":"Seneca framework cannot locate the plugin","error":"Error: auth-redirect plugin not found"}],"ecosystem":"npm","meta_description":null,"install_score":null,"install_tag":null,"quickstart_score":null,"quickstart_tag":null}