aviogram / jwt
JSON Web Token
Installs: 2 797
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=5.4
- aviogram/common: ~0.1.0
Suggests
- ext-openssl: Add support for RSA keys
This package is not auto-updated.
Last update: 2024-12-21 19:26:35 UTC
README
Json Web Token
Example - Create Token
use Aviogram\JWT\JWT; $token = JWT::encode( JWT::createClaimSet()->setNbf(new DateTime('NOW + 1 DAY')), JWT::createEncryptionList()->addHS512Key('mysecret') );
Example - Verify Token
use Aviogram\JWT\JWT; $claimSet = JWT::decode( $token JWT::createEncryptionList()->addHS512Key('mysecret') );