OpenBook
  • Problems
  • Tracks
  • How it works
  • Pricing
Start practicingSign In
Problems/Auth & Permissions

27. Share Links with Expiry

Medium

Owners share documents through view or edit links that expire, can be revoked, and can be passed on.

40 minute budget0.0% acceptancetokens · expiry · capabilities

Requirements

  1. 01Users own documents, named by an x-user header; only the owner sees a document through the owner routes.
  2. 02The owner creates share links granting view or edit access to anyone holding the token, each with an expiry.
  3. 03Through a link anyone reads the document; an edit link may also update it, and a link holder may re-share it.
  4. 04The owner lists a document's links with their status (active, expired, revoked) and revokes any of them.
  5. 05Time comes from an x-now header when present; 400 invalid input, 403 not allowed, 404 unknown id or token.

What the hidden tests check

  • Everything the interviewer tells you is checked.
  • Expiry is checked to the second, through every route a link can reach.

4 more details are held back. In a mock interview they come out only when you ask the interviewer the right question; in practice they are listed in the workspace.

Sign in to start

Attempts, files and transcripts are saved to your account so the grader can review how you worked.

Sign inCreate an account
OpenBook

Practice for interviews where you build a feature with an AI assistant.

Early preview. Problems, grading and the interviewer are still changing.

Practice

  • Problems
  • Tracks
  • How it works
  • Pricing

Legal

  • Terms
  • Privacy
© 2026 OpenBook.