feat: add iOS support and harden receipt scanning

This commit is contained in:
Timo
2026-08-20 23:48:26 +02:00
parent f5e06c32b0
commit cf1b799e1b
107 changed files with 11755 additions and 122 deletions

View File

@@ -7,9 +7,9 @@ export const runtime = "nodejs";
export const dynamic = "force-dynamic";
/** Who am I? Returns `{ user: null }` when signed out — never an error. */
export async function GET() {
export async function GET(request: Request) {
try {
const user = await getCurrentUser();
const user = await getCurrentUser(request);
if (!user) return NextResponse.json({ user: null });
const isPro = isProActive(user);