This is a demo of JWT tokens using with jQuery Terminal JSON-RPC feature. The PHP code use Firebase JWT library and implements Access and Refresh tokens. The code also use json-rpc.php for JSON-RPC implementation.
To use this code:
- Run
composer install
(composer need to be installed on your system) - Copy
.env.example
to.env
and set username, password, secrets, and the rest of the configuration
To test this in action you can check: https://terminal.jcubic.pl/jwt/ The username and password is default (demo:demo).
Licensed under MIT license
Copyright (c) 2023 Jakub T. Jankiewicz