Add public privacy and terms pages for TikTok Login Kit

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
eric 2026-08-14 09:41:07 -05:00
parent eceefbe7cb
commit 432b1cec9e
3 changed files with 50 additions and 1 deletions

View File

@ -0,0 +1,26 @@
export default function PrivacyPage() {
return (
<main className="mx-auto max-w-2xl px-6 py-12 text-slate-200">
<h1 className="mb-4 text-2xl font-semibold text-white">Privacy Policy</h1>
<p className="mb-4 text-sm text-slate-400">Last updated: August 14, 2026</p>
<div className="space-y-4 text-sm leading-relaxed text-slate-300">
<p>
dylive.nomadro.com (&quot;we&quot;, &quot;our&quot;) operates a live monitoring and video publishing tool for
authorized operators only.
</p>
<p>
When you connect your TikTok account, we store OAuth tokens solely to upload videos you explicitly schedule or
approve. We do not sell personal data.
</p>
<p>
Data we may process: TikTok account identifiers, display name, OAuth access and refresh tokens, and uploaded
video metadata required to complete publishing.
</p>
<p>
You may revoke access at any time in TikTok account settings or by removing the connected account in our app.
</p>
<p>For questions, contact the site administrator.</p>
</div>
</main>
);
}

View File

@ -0,0 +1,23 @@
export default function TermsPage() {
return (
<main className="mx-auto max-w-2xl px-6 py-12 text-slate-200">
<h1 className="mb-4 text-2xl font-semibold text-white">Terms of Service</h1>
<p className="mb-4 text-sm text-slate-400">Last updated: August 14, 2026</p>
<div className="space-y-4 text-sm leading-relaxed text-slate-300">
<p>
By using dylive.nomadro.com, you agree to use this service only for lawful content publishing and monitoring
that complies with TikTok&apos;s platform policies.
</p>
<p>
You are responsible for the videos uploaded through your connected TikTok account, including rights to use the
underlying content.
</p>
<p>
We provide the service as-is and may suspend access for abuse, policy violations, or security issues.
</p>
<p>You must keep your account credentials secure and notify us of unauthorized use.</p>
<p>For questions, contact the site administrator.</p>
</div>
</main>
);
}

View File

@ -1,7 +1,7 @@
import { NextResponse } from "next/server";
import type { NextRequest } from "next/server";
const PUBLIC = ["/login"];
const PUBLIC = ["/login", "/privacy", "/terms"];
export function middleware(request: NextRequest) {
const { pathname } = request.nextUrl;