rozwell / ed25519-jwt by rozwell

Instant Laravel/Lumen v9+ Ed25519 support for tymon/jwt-auth
19
0
1
Package Data
Maintainer Username: rozwell
Maintainer Contact: rozwell69@gmail.com (rozwell)
Package Create Date: 2024-10-31
Package Last Update: 2024-11-04
Language: PHP
License: MIT
Last Refreshed: 2025-01-30 03:09:37
Package Statistics
Total Downloads: 19
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 1
Total Forks: 0
Total Open Issues: 0

Ed25519 JWT

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

Installation

1. Register service provider (Lumen only)

Add below line in bootstrap/app.php Service Providers section:

$app->register(Rozwell\Ed25519JWT\Providers\Ed25519JWTServiceProvider::class);

2. Change configuration (optional)

Change default configuration in .env:

JWT_ALGO=Ed25519
JWT_PUBLIC_KEY=ed25519.public
JWT_PRIVATE_KEY=ed25519.private

3. Generate keys with command:

php artisan jwt:keys

4. Ignore keys files

Add to .gitignore:

/storage/keys