← Questions

Authentication token manager with expiry

0
MicrosoftAppleCodingLast asked Sep 2026

A coding interview question asked in Apple's technical phone screen and at Microsoft, last asked Sep 2026. It tests hash tables, expiry and design.

Build a manager for authentication tokens that all live for the same time_to_live. A token generated or renewed at time t expires at t + time_to_live; it is unexpired at time now only while its expiry is strictly greater than now.

Sign in to unlock this question

The full prompt, the worked answer and your own canvas or code with the AI tutor. New accounts get 5 credits: each one unlocks a question for good.

Where it's asked

  • Apple · Technical phone screen · Last asked Sep 2026
  • Microsoft · Coding · Last asked Feb 202660 min · Ten to fifteen minutes of behavioral questions, then coding in HackerRank where you write a main and make the tests pass; usually three rounds · No AI unless the interviewer invites it; some 2026 loops add a round where you bring your own AI agent

What it tests

hash tables · expiry · design

Your code and the AI tutor open when you unlock this question.