Auth via JWT Question


#1

Hi,

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.


#2

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.

#3

Thanks for reply

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


#4

Hi, I have suggest for you

CoreUI

It’s cool