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?
- Least privilege: viewers see only a sanitized snapshot, never your live data
- Automatic clean-up: links expire on schedule so you dont have to revoke access manually
- Frictionless: one URL, no account or login required to preview
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
- Open the Share Link creator
- Paste the Firestore ref of the item you want to share (e.g.
users/<uid>/templates/<id>
) - Set a TTL and click Create