No description
Find a file
Karolis Kudze Kraujelis ea0a656b99 this
2026-02-27 05:13:30 +02:00
src Updated deps, using safe php-jwt version, php8.5 2026-02-27 05:11:18 +02:00
tests we cover the other method as well 2024-03-19 03:40:41 +02:00
.gitignore added simple unit tests 2024-02-12 01:32:48 +02:00
composer.json this 2026-02-27 05:13:30 +02:00
composer.lock Updated deps, using safe php-jwt version, php8.5 2026-02-27 05:11:18 +02:00
phpunit.xml added simple unit tests 2024-02-12 01:32:48 +02:00
README.md added simple unit tests 2024-02-12 01:32:48 +02:00

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

  1. Configure enviroment variable JWT_PUBLIC_KEY to be public key from: https://auth.kudze.lt (We may introduce rotating keys in future)
  2. Use AccessTokenValidator service to decode access token.

Unit tests

In order to run unit tests you need to:

  1. Install composer dependencies: composer install
  2. Run phpunit tests: ./vendor/bin/phpunit