1차 보완(0.1.1+14) 내용 합치기

This commit is contained in:
Sn-Kinos
2026-10-16 17:58:55 +09:00
62 changed files with 2480 additions and 447 deletions
@@ -48,6 +48,8 @@ const call = (fn: { run(request: never): unknown }, uid: string, data: Record<st
async function user(uid: string, fandom: string, ageHours = 48) {
await db().doc(`users/${uid}`).set({
fandomId: fandom, primaryFandomId: fandom, nickname: uid, status: 'active',
// 위치 Quest 인증은 위치기반 서비스 동의가 있어야 한다(Q-E1 · R02).
consentState: { location: { granted: true, version: 'v1' } },
createdAt: Timestamp.fromMillis(Date.now() - ageHours * HOUR),
});
}