From 1288e489642b6698035597cc96612656c68d264b Mon Sep 17 00:00:00 2001
From: Alexander Timmermann <alexander.timmermann@holi.social>
Date: Tue, 25 Feb 2025 13:32:53 +0100
Subject: [PATCH] feat(auth): add email to authenticated user query

This is needed for tracking with the Facebook SDK.

Refs: HOLI-11044
---
 .../migrations/0036_merge_20250311_1255.py          | 13 +++++++++++++
 openbook_auth/schema/types.py                       |  1 +
 2 files changed, 14 insertions(+)
 create mode 100644 openbook_auth/migrations/0036_merge_20250311_1255.py

diff --git a/openbook_auth/migrations/0036_merge_20250311_1255.py b/openbook_auth/migrations/0036_merge_20250311_1255.py
new file mode 100644
index 000000000..a9f6e7dad
--- /dev/null
+++ b/openbook_auth/migrations/0036_merge_20250311_1255.py
@@ -0,0 +1,13 @@
+# Generated by Django 5.0.13 on 2025-03-11 11:55
+
+from django.db import migrations
+
+
+class Migration(migrations.Migration):
+
+    dependencies = [
+        ("openbook_auth", "0035_user_tracking_consent_ad_partners"),
+        ("openbook_auth", "0035_userprofile_interests_v2_userprofile_skills_v2"),
+    ]
+
+    operations = []
diff --git a/openbook_auth/schema/types.py b/openbook_auth/schema/types.py
index 14f4aadca..4eef21141 100644
--- a/openbook_auth/schema/types.py
+++ b/openbook_auth/schema/types.py
@@ -142,6 +142,7 @@ class User:
 
 @strawberry_django.type(UserModel)
 class AuthenticatedUser(User):
+    email: str
     tracking_consent_analytics: Optional[bool]
     tracking_consent_personalization: Optional[bool]
     tracking_consent_ad_partners: Optional[bool]
-- 
GitLab