Auth via JWT Question



I’m not sure how authentication would work with the Mysql database?

In the case of jwt I would store the token in each database record and at the time of access would I check in / login would I call the accounts through an ORM to check the token?

Thanks my friends.


With JWT, you don’t store token in the database.

  • Server creates a token with provided key for a successful login request and sends the token back to the client.
  • For all subsequent requests, client sends the same token in the request (header, query etc) and server validates it using the key - no database involved.


Thanks for reply

I have another question
Is it possible to add the ace template in my project?


Hi, I have suggest for you


It’s cool