Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

323
Views
How to use JWT for login?

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.

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!