Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use PHPAuth for a REST API ? #291

Open
Lorian-tation opened this issue Jul 25, 2023 · 1 comment
Open

Use PHPAuth for a REST API ? #291

Lorian-tation opened this issue Jul 25, 2023 · 1 comment

Comments

@Lorian-tation
Copy link

Lorian-tation commented Jul 25, 2023

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
Copy link
Contributor

ocram commented Jul 27, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants