rozwell / ed25519-jwt
Instant Laravel/Lumen v9+ Ed25519 support for tymon/jwt-auth
Installs: 19
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:package
Requires
- php: ^8.0
- ext-openssl: *
- ext-sodium: *
- illuminate/console: ^9.0||^10.0||^11.0
- illuminate/filesystem: ^9.0||^10.0||^11.0
- illuminate/support: ^9.0||^10.0||^11.0
- lcobucci/jwt: ^4.0
- tymon/jwt-auth: ^2.0
Suggests
- laravel/framework: Required if using this package with Laravel
- laravel/lumen-framework: Required if using this package with Lumen
README
Instant Laravel/Lumen v9+ Ed25519 support for tymon/jwt-auth
Installation
1. Install using composer:
composer require rozwell/ed25519-jwt
2. Register service provider (Lumen only)
Add below line in bootstrap/app.php
Service Providers section:
$app->register(Rozwell\Ed25519JWT\Providers\Ed25519JWTServiceProvider::class);
3. Change configuration (optional)
Change default configuration in .env
:
JWT_ALGO=Ed25519 JWT_PUBLIC_KEY=ed25519.public JWT_PRIVATE_KEY=ed25519.private
4. Generate keys with command:
php artisan jwt:keys
5. Ignore keys files
Add to .gitignore
:
/storage/keys