Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

331
Vistas
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
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda