Use PHPAuth for a REST API ?
Lorian-tation opened this issue · 1 comments
Lorian-tation commented
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
ocram commented
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.