Best way to validate token
Unanswered
Alligator mississippiensis posted this in #help-forum
Alligator mississippiensisOP
Hi, im trying to build authentication jwt, with access token for validate every request in rest api and refresh token for validate users in every request, for refresh token store in mysql. and i do it with middleware to handle all request. everything is fine, so what's the problem? i had bad experience because every request required wait until token is valid, it takes about 0.05-0.1 second which is not about bad server hardware.
so is there any solution for this situation? i know i can use loading state, its also bad for user experience, cause need loading a whole pages, or mayble like a small blink.
sorry for my bad english, im asian
thanks you guys 🙠hope get any solution
so is there any solution for this situation? i know i can use loading state, its also bad for user experience, cause need loading a whole pages, or mayble like a small blink.
sorry for my bad english, im asian
thanks you guys 🙠hope get any solution