Search
⌘K
Get Premium
Leetcode 1797. Design Authentication Manager
Manage tokens that expire timeToLive seconds after creation/renewal, supporting generate, renew (only if the token is still unexpired), and countUnexpiredTokens (with expirations at time t processed before actions at t). The core challenge is efficiently tracking and removing expired tokens — typically handled with a token->expiry map plus a min-heap/queue for lazy expiration cleanup.
Question Timeline
See when this question was last asked and where, including any notes left by other candidates.
All Regions
Comments
Hello Interview Premium
Your account is free and you can post anonymously if you choose.