Package Installation
Install MagenX404 using your preferred package manager:Framework-Specific Setup
Next.js
See the Next.js Setup Guide for detailed configuration.React (Create React App)
No additional configuration needed. The package works out of the box.Vue.js
No additional configuration needed. The package works out of the box.Vanilla JavaScript
The package works in any JavaScript environment that supports ES modules.Verify Installation
After installation, verify it works:TypeScript Support
The package includes full TypeScript definitions. If you’re using TypeScript, you’ll get:- Full IntelliSense support
- Type checking
- Auto-completion
Package Structure
The package exports:- Features: Individual authentication features
- Utilities: Helper functions for wallet detection, geolocation, etc.
- Types: TypeScript type definitions
Troubleshooting
Module Not Found Errors
If you see module resolution errors:-
Clear cache and reinstall:
-
For Next.js: Make sure
transpilePackagesis configured (see Next.js Setup) - Restart your dev server
Type Errors
If TypeScript can’t find types:- Make sure
node_modules/magenx404exists - Check that your
tsconfig.jsonincludes the package:
Build Errors
If you encounter build errors:- Ensure you’re using a compatible Node.js version (18+)
- Check that all dependencies are installed
- Clear build cache and rebuild
Next Steps
Next.js Setup
Configure Next.js for MagenX404
Quick Start
Get started with your first authentication