PHP-Auth icon indicating copy to clipboard operation
PHP-Auth copied to clipboard

Use PHPAuth for a REST API ?

Open Lorian-tation opened this issue 2 years ago • 1 comments

Is there a way to create a JWT on login and store it in the database to get it on the login request ? (and disable all Sessions & Cookies creation ?) I'm trying to build a REST API with a secure authentification system :D

Lorian-tation avatar Jul 25 '23 21:07 Lorian-tation

Thanks, that would indeed be a good additional use case. But right now, it’s not possible yet, unfortunately. Anyway, there’s no reason to think we couldn’t redesign this library to make sessions and cookies optional and allow for usage with JWTs instead.

ocram avatar Jul 27 '23 09:07 ocram