POST /v1/auth/apple verifies the ID token from Sign in with Apple JS against Apple's keys, the Services IDs in APPLE_CLIENT_IDS and Apple's issuer, then logs in like Google: the linked identity, else the user with the same verified address, else a new user (invitations and referrals as for Google). The Google verifier became a shared ID token verifier. Apple gives the name only at the first sign-in; the page sends it along (family name first). The login page shows Apple's white button under Google's when it is configured; the privacy pages say what Apple passes on, including the relay addresses. The deploy compose's MAIL_FROM default is noreply@ like production (the sender registered for Apple's e-mail relay). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
303 lines
13 KiB
TypeScript
303 lines
13 KiB
TypeScript
import type { Metadata } from "next";
|
||
import Link from "next/link";
|
||
|
||
import { PublicHeader } from "@/components/SiteHeader";
|
||
import { OPERATOR, PRIVACY_UPDATED_EN, operatorDetails } from "@/lib/legal";
|
||
import { getMe } from "@/lib/server";
|
||
|
||
export const metadata: Metadata = {
|
||
title: "Privacy Policy",
|
||
description: "How Sorsfonalak handles your personal data, including the data received from your Google account.",
|
||
};
|
||
|
||
const DATA: [string, string, string][] = [
|
||
[
|
||
"Your Google or Apple account's name, e-mail address and ID (passed on by Google or Apple when you sign in)",
|
||
"Creating your account, signing you in, contacting you",
|
||
"Performance of a contract (GDPR Art. 6(1)(b))",
|
||
],
|
||
["Display name, the language of your readings", "Personalising the service", "Performance of a contract"],
|
||
[
|
||
"Your birth data: date, time and place",
|
||
"Calculating your birth chart and writing your readings",
|
||
"Performance of a contract",
|
||
],
|
||
[
|
||
"Names and birth data of the people you add",
|
||
"Their charts and readings, at your request",
|
||
"Performance of a contract; adding someone requires their consent (see section 5)",
|
||
],
|
||
["Your charts and finished readings", "So you can look at them again at any time", "Performance of a contract"],
|
||
[
|
||
"Your purchases and used allowances (readings, persons)",
|
||
"Providing the purchased service, accounting",
|
||
"Performance of a contract; legal obligation (Art. 6(1)(c))",
|
||
],
|
||
[
|
||
"Your payments: Stripe's payment ID, the amount paid, your billing name, address and e-mail address, and for a company purchase the company name and tax number",
|
||
"Proof of payment, issuing the invoice",
|
||
"Performance of a contract; legal obligation (Art. 6(1)(c))",
|
||
],
|
||
[
|
||
"An invitee's e-mail address, the inviter's name and personal message",
|
||
"Sending the invitation; while the site is invitation-only, only invitees can sign up",
|
||
"Legitimate interest (Art. 6(1)(f))",
|
||
],
|
||
[
|
||
"The e-mail address given on the waitlist",
|
||
"Telling you when the site opens or an invitation is sent",
|
||
"Consent (Art. 6(1)(a))",
|
||
],
|
||
[
|
||
"Addresses that opted out of invitations (only a one-way hash of the address)",
|
||
"Not sending further invitations to them",
|
||
"Legitimate interest (Art. 6(1)(f))",
|
||
],
|
||
[
|
||
"IP address, browser details, request times (server logs)",
|
||
"Security, troubleshooting, preventing abuse",
|
||
"Legitimate interest (Art. 6(1)(f))",
|
||
],
|
||
];
|
||
|
||
/** The privacy policy in English (the Hungarian one at /adatvedelem is the same in content). */
|
||
export default async function PrivacyPolicyPage() {
|
||
const me = await getMe();
|
||
return (
|
||
<>
|
||
{!me && <PublicHeader />}
|
||
<main className="page legal" lang="en">
|
||
<div className="page-head">
|
||
<h1>Privacy Policy</h1>
|
||
<p className="muted">
|
||
Effective: {PRIVACY_UPDATED_EN} ·{" "}
|
||
<Link href="/adatvedelem" lang="hu">
|
||
Magyar változat
|
||
</Link>
|
||
</p>
|
||
</div>
|
||
|
||
<section>
|
||
<h2>1. Who is responsible for your data?</h2>
|
||
<p>
|
||
{operatorDetails() ? (
|
||
<>
|
||
The controller of the Sorsfonalak service (sorsfonalak.hu) is <strong>{operatorDetails()}</strong>.{" "}
|
||
</>
|
||
) : (
|
||
"The controller of the Sorsfonalak service (sorsfonalak.hu) can be reached by e-mail. "
|
||
)}
|
||
For any privacy or other question, contact us at{" "}
|
||
<a href={`mailto:${OPERATOR.email}`}>
|
||
<strong>{OPERATOR.email}</strong>
|
||
</a>
|
||
.
|
||
</p>
|
||
</section>
|
||
|
||
<section>
|
||
<h2>2. What data we process and why</h2>
|
||
<div className="table-wrap">
|
||
<table className="legal-table">
|
||
<thead>
|
||
<tr>
|
||
<th>Data</th>
|
||
<th>Purpose</th>
|
||
<th>Legal basis</th>
|
||
</tr>
|
||
</thead>
|
||
<tbody>
|
||
{DATA.map(([data, purpose, basis]) => (
|
||
<tr key={data}>
|
||
<td>{data}</td>
|
||
<td>{purpose}</td>
|
||
<td>{basis}</td>
|
||
</tr>
|
||
))}
|
||
</tbody>
|
||
</table>
|
||
</div>
|
||
<p>
|
||
<strong>We do not process or store card details.</strong> Payments are made on Stripe's secure payment
|
||
page: you give your card details directly to Stripe, and they never reach us. From Stripe we only receive
|
||
the payment's ID, the amount and your billing details, which we keep for the period required by
|
||
accounting law (8 years), even after your account is deleted.
|
||
</p>
|
||
</section>
|
||
|
||
<section>
|
||
<h2>3. Data we receive from your Google account</h2>
|
||
<p>
|
||
We use “Sign in with Google” with the <code>openid</code>, <code>email</code> and <code>profile</code>{" "}
|
||
scopes. When you sign in, Google passes us:
|
||
</p>
|
||
<ul>
|
||
<li>your Google account's unique ID,</li>
|
||
<li>your e-mail address and whether Google has verified it,</li>
|
||
<li>your name,</li>
|
||
<li>your language setting.</li>
|
||
</ul>
|
||
<p>
|
||
<strong>How we use it:</strong> to create your account and recognise you when you sign in; your e-mail address
|
||
for service e-mails (for example when a reading is ready or an invitation was accepted); your name for display;
|
||
your language for the language of the site and your readings.
|
||
</p>
|
||
<p>
|
||
<strong>What we do not do:</strong> we have no access to any other Google data (Gmail, Drive, Calendar,
|
||
contacts, photos), and we do not use any Google service on your behalf. We do not sell the data received from
|
||
Google, do not use it for advertising or profiling, do not share it with third parties (except the processors
|
||
that store it and send e-mails, see section 6), and do not send it to artificial intelligence.
|
||
</p>
|
||
<p>
|
||
<strong>Retention and deletion:</strong> we keep it until you delete your account. You can delete your account
|
||
and all your data at any time on the <Link href="/profil#adataim">Profile</Link> page, and revoke
|
||
Sorsfonalak's access in your Google account at{" "}
|
||
<a href="https://myaccount.google.com/permissions" target="_blank" rel="noopener noreferrer">
|
||
myaccount.google.com/permissions
|
||
</a>
|
||
.
|
||
</p>
|
||
<p>
|
||
Sorsfonalak's use and transfer of information received from Google APIs adheres to the{" "}
|
||
<a
|
||
href="https://developers.google.com/terms/api-services-user-data-policy"
|
||
target="_blank"
|
||
rel="noopener noreferrer"
|
||
>
|
||
Google API Services User Data Policy
|
||
</a>
|
||
, including the Limited Use requirements.
|
||
</p>
|
||
<p>
|
||
<strong>Signing in with Apple:</strong> if you choose “Sign in with Apple”, Apple passes us your account's
|
||
unique ID and your e-mail address, and your name the first time. If you hide your address, we get an Apple
|
||
relay address (<code>…@privaterelay.appleid.com</code>) and Apple forwards our e-mails to you. We use these
|
||
for the same purposes and in the same way as the Google data. You can revoke access in your Apple ID settings
|
||
(Sign-In and Security › Sign in with Apple).
|
||
</p>
|
||
</section>
|
||
|
||
<section>
|
||
<h2>4. Readings and artificial intelligence</h2>
|
||
<p>
|
||
The short summary and the detailed reading are written by a large language model (artificial intelligence).
|
||
Only the <strong>astronomical data of the chart</strong> reach the model (the signs, degrees, houses and
|
||
aspects of the planets). We never send your name, e-mail address, birth date, time or place. The readings are
|
||
for entertainment and self-reflection and are not medical, financial, legal or other professional advice.
|
||
</p>
|
||
</section>
|
||
|
||
<section>
|
||
<h2>5. Other people's data</h2>
|
||
<p>
|
||
If you add someone else's birth data (for example your partner's or a family member's), please
|
||
do so only with their consent. Only you see their data; nobody else receives it from us. You can delete a
|
||
person you added at any time, which also deletes their chart and readings.
|
||
</p>
|
||
</section>
|
||
|
||
<section>
|
||
<h2>6. Who has access to the data (processors)</h2>
|
||
<ul>
|
||
<li>
|
||
<strong>DigitalOcean, LLC</strong>: hosting the servers; the data is stored in the European Union
|
||
(Amsterdam).
|
||
</li>
|
||
<li>
|
||
<strong>Cloudflare, Inc.</strong>: delivering traffic and protecting against attacks; processes your IP
|
||
address and request data when the site loads.
|
||
</li>
|
||
<li>
|
||
<strong>Google LLC</strong>: signing in with a Google account.
|
||
</li>
|
||
<li>
|
||
<strong>Amazon Web Services EMEA SARL</strong> (Amazon SES): delivering service e-mails and invitations; in
|
||
the European Union (Frankfurt).
|
||
</li>
|
||
<li>
|
||
<strong>Stripe Payments Europe, Ltd.</strong> (Ireland): processing card payments and preventing fraud;
|
||
only Stripe handles card details.
|
||
</li>
|
||
<li>
|
||
<strong>Billingo Technologies Zrt.</strong> (Billingo): issuing, sending and keeping the invoices; it
|
||
receives your billing details (name, address, e-mail address, and for a company its name and tax number).
|
||
</li>
|
||
<li>
|
||
<strong>OpenRouter, Inc.</strong> and the artificial intelligence providers it reaches: writing the readings,
|
||
only from the astronomical data described in section 4 (no personal data reaches them).
|
||
</li>
|
||
</ul>
|
||
<p>
|
||
Some of these providers operate in the United States. Transfers are based on the EU–US Data Privacy Framework
|
||
or the European Commission's Standard Contractual Clauses (SCC).
|
||
</p>
|
||
</section>
|
||
|
||
<section>
|
||
<h2>7. How long we keep data</h2>
|
||
<ul>
|
||
<li>Your account data, charts and readings: until you delete your account.</li>
|
||
<li>Deleted data disappears from backups within 14 days.</li>
|
||
<li>Server logs: at most 30 days.</li>
|
||
<li>
|
||
Invitations not accepted: deleted 30 days after they expire or are revoked. Every invitation e-mail has an
|
||
unsubscribe link.
|
||
</li>
|
||
<li>Waitlist addresses: until you sign up, or until you ask us to delete them.</li>
|
||
<li>Data needed for invoicing: for the period required by accounting law (8 years).</li>
|
||
</ul>
|
||
</section>
|
||
|
||
<section>
|
||
<h2>8. Cookies</h2>
|
||
<p>
|
||
We use a single cookie that is strictly necessary for the service (<code>sf_session</code>), which keeps you
|
||
signed in. We use no advertising or tracking cookies and no analytics.
|
||
</p>
|
||
</section>
|
||
|
||
<section>
|
||
<h2>9. Your rights</h2>
|
||
<ul>
|
||
<li>
|
||
<strong>Access and portability:</strong> download all your data with one click on the{" "}
|
||
<Link href="/profil#adataim">Profile</Link> page.
|
||
</li>
|
||
<li>
|
||
<strong>Rectification:</strong> change your name and birth data on the Profile page.
|
||
</li>
|
||
<li>
|
||
<strong>Erasure:</strong> delete your account and all your data on the Profile page.
|
||
</li>
|
||
<li>
|
||
<strong>Restriction and objection:</strong> ask us at the e-mail address above.
|
||
</li>
|
||
</ul>
|
||
<p>
|
||
We answer within one month. If you think we have violated your rights, you can lodge a complaint with the
|
||
Hungarian National Authority for Data Protection and Freedom of Information (NAIH, 1055 Budapest, Falk Miksa
|
||
utca 9–11.,{" "}
|
||
<a href="https://naih.hu" target="_blank" rel="noopener noreferrer">
|
||
naih.hu
|
||
</a>
|
||
) or go to court.
|
||
</p>
|
||
</section>
|
||
|
||
<section>
|
||
<h2>10. Age limit</h2>
|
||
<p>The service is for people over 16.</p>
|
||
</section>
|
||
|
||
<section>
|
||
<h2>11. Changes</h2>
|
||
<p>
|
||
If this policy changes materially, we will tell you when you sign in or by e-mail. The current version is
|
||
always on this page.
|
||
</p>
|
||
</section>
|
||
</main>
|
||
</>
|
||
);
|
||
}
|