How to Create Secure, Expiring Share Links for Next.js Content

Generate view-only links that auto-expire, perfect for demos and client reviews.

Sharing in-progress work often means juggling access control, permissions, and clean-up. A safer option is to share a view-only snapshot that expires. In this guide, youll learn how Jupiter Horizons helps you create secure, expiring share links for your content in seconds.

Why expiring share links?

How Jupiter Horizons implements this

Our share links use shareLinks/ documents in Firestore with revoked and expiresAt flags. Firestore rules only allow reads when the link is not revoked and not expired. The public page /s/[slug] validates status at request time.

View-only snapshots
Share just enough to review, never your live data.
Auto-expiry
Set TTL in hours; links expire automatically.
Rules enforced
Firestore security limits public reads precisely.

Try it now

  1. Open the Share Link creator
  2. Paste the Firestore ref of the item you want to share (e.g. users/<uid>/templates/<id>)
  3. Set a TTL and click Create
Create a Share LinkSee how public views render