Re:Ask HN: What's the recommended method of adding authentic...
by matwood on Tuesday January 16, 2018 @10:41AM
(#16158928)
> Does it keep a copy somewhere and check against it on every request?
Yep, a store like Redis that has automatic row expiration is what I have used in the past. Most clients will often be bursty in their requests so a simple few second cache on API after verifying the token can also be useful/performant.
Yep, a store like Redis that has automatic row expiration is what I have used in the past. Most clients will often be bursty in their requests so a simple few second cache on API after verifying the token can also be useful/performant.