rozwell/ed25519-jwt

Instant Laravel/Lumen v9+ Ed25519 support for tymon/jwt-auth

1.0.6 2024-10-31 18:25 UTC

This package is auto-updated.

Last update: 2024-12-04 12:52:46 UTC


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