zestic / codeception-jwt
Asserts for jwt token
v0.2.0
2022-10-20 05:50 UTC
Requires
- php: >=7.4
- codeception/codeception: ^2.1 || ^3.1.3 || ^4.1.22 || ^5.0
This package is auto-updated.
Last update: 2024-10-20 10:41:32 UTC
README
A codeception extension for asserting JWT
Installation
composer require zestic/codeception-jwt --dev
To configure
In your acceptance.suite.yml file
modules: enabled: - JWT: algorithm: publicKeyPath: privateKeyPath: tokenTtl:
In your composer.json
{ "repositories": { "zestic/codeception-jwt": { "type": "vcs", "url": "git@gitlab.com:zestic/codeception-jwt.git" }, } }
Testing
To use it in a test