M
M
medovuk2018-04-03 15:33:25
Redis
medovuk, 2018-04-03 15:33:25

Implement a generic Access Token validation mechanism?

Good afternoon. Please help with advice/algorithm since I did not work with either Access Token or Redis. The token is stored in Redis. Implement a common mechanism for validating an Access Token. If the token lifetime is less than 5 minutes, the lifetime should be extended by 1 hour.
I will be glad for any help.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Papa, 2018-04-03
Stifflera @PapaStifflera

Read the Redis documentation.
Read the required token from Redis, check the TTL. If it is less than 5 minutes - increase TTL.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question