No description
Find a file
Karolis Kudze Kraujelis 3ddad009f8 updated deps
2025-08-27 03:26:49 +03:00
src Added model for user data stored in jwt token 2024-03-19 03:38:14 +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 added simple unit tests 2024-02-12 01:32:48 +02:00
composer.lock updated deps 2025-08-27 03:26:49 +03: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