No description
src | ||
tests | ||
.gitignore | ||
composer.json | ||
composer.lock | ||
phpunit.xml | ||
README.md |
Access Token Validator
Description
This is a very small utility to validate access tokens that are emitted from: https://auth.kudze.lt
How to use
- Configure enviroment variable
JWT_PUBLIC_KEY
to be public key from: https://auth.kudze.lt (We may introduce rotating keys in future) - Use
AccessTokenValidator
service to decode access token.
Unit tests
In order to run unit tests you need to:
- Install composer dependencies:
composer install
- Run phpunit tests:
./vendor/bin/phpunit