I'm making a simple PHP app, which is meant to import and export data into various formats (JSON,XML,SQL).
I wanted to add the functionality of logging in - as in, you can only load the data once you've logged in. For this, I wanted to use JWT Tokens, and I did implement them using this tutorial: https://www.techiediaries.com/php-jwt-authentication-tutorial/
And the authentication does work, I've checked in Postman and sending a POST request to both endpoints works just fine.
My problem is that I have no clue how to actually use this for a login page. Of course it has to be some sort of an HTML form and I suppose it's probably gonna execute some JavaScript script on submitting, but I have no clue what to actually put in that script, how to use the endpoints I've created.
Here is the full project, in case that helps: https://github.com/NeonArmageddon/IS_Project
Thanks in advance to anyone who can help me understand how to use this.