Registry / auth / tymon-jwt-auth

tymon-jwt-auth

JSON →
library2.3.0phppackagistunverified

JSON Web Token Authentication for Laravel and Lumen

composer require tymon/jwt-auth
INSTALL
IMPORT
SIG · TYMON-JWT-AUTH
T
tymon-jwt-auth
authphpv2.3.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

JWTAuth
use Tymon\JWTAuth\Facades\JWTAuth;

Authenticate a user and return a JWT token

use Tymon\JWTAuth\Facades\JWTAuth; $token = JWTAuth::attempt(['email' => 'user@example.com', 'password' => 'secret']);
Debug
Known issues
breakingBreaking change in v2.0: The facade namespace changed from Tymon\JWTAuth\Facades\JWTAuth to Tymon\JWTAuth\Facades\JWTAuth (same) but the underlying class structure was refactored.
fix
Update your code to use the new facade and check the upgrade guide for v2.0.
affects: >=2.0.0
Upgrade
Version history
2.3.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
21 hits · last 30 days
node
18
Resources
tymon-jwt-auth — pip install tymon-jwt-auth · libregistry