[Auth] Social login with Google and Apple
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 12/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- react-native, typescript
- Lĩnh vực
- authentication, backend, frontend, mobile
Hướng nghiên cứu
Start with the auth code in backend/src/modules/auth/, mobile/src/contexts/auth/ and the login screens mobile/src/screens/Login.tsx and frontend/src/pages/Login.tsx, then find where Facebook login is wired in. Most acceptance criteria depend on external Google and Apple OAuth clients, store access and a blocking issue #514, so confirm those exist before writing code. Done means Google and Apple sign-in work in a TestFlight or Play internal build, verified-email accounts link to existing users, and Facebook login is removed.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Context
VIC 2.0 login is magic link + social login. No passwords and no Facebook login.
Scope:
- Google sign-in on web, Android and iOS.
- Sign in with Apple on iOS (required by App Store guideline 4.8 when Google login is offered), and on web if we want parity.
- Social accounts are linked to the VIC account by verified email. Handle Apple's private relay emails ("Hide my email").
- Built on VIC's own authentication (no Cognito). "Login with NGO Hub" stays exploratory as an extra provider.
Accounts and access we need
Owned by Commit Global, with access for the Tribus team:
- Google Cloud project (Commit Global org), with Owner or Editor access for us.
- OAuth consent screen set up and published (app name, logo, privacy policy and terms URLs, authorized domains); Google verification if we request more than basic scopes.
- OAuth client IDs: Web (redirect URIs for staging and production), iOS (bundle ID), Android (package name + SHA-1).
- Google Play Console access, to read the SHA-1 of the Play App Signing key and the upload key.
Apple
- Apple Developer Program team (Commit Global), with Admin role for us (or the Account Holder does the steps below).
- App ID with the "Sign in with Apple" capability enabled.
- Services ID for web sign-in, with the verified domain and return URLs (staging and production).
- Sign in with Apple private key (.p8), plus its Key ID and the Team ID.
- Private email relay: register the domain(s) we send email from (magic link, notifications), with SPF/DKIM, so emails reach "Hide my email" addresses.
- App Store Connect access (App Manager) to submit the build and update the App Privacy details.
Other
- Expo / EAS project access, to rebuild the apps with the new native config.
- Place to store the secrets (Google client secret, Apple .p8 key) in the backend environments.
Design
Prototype: https://perch-pic-08148752.figma.site/ → Login. The prototype is indicative; this issue's text wins where they differ.
Acceptance criteria
- Volunteers can sign in with Google (Android, iOS) and Apple (iOS) in the mobile app; web offers Google if enabled.
- A social login with a verified email that matches an existing account signs into that account.
- Apple "Hide my email" users can sign in and receive emails.
- Facebook login is removed.
- Works in TestFlight and Play internal builds (real OAuth clients, not Expo Go).
Dependencies
Phase 0. Blocked by #514.
Where to look
backend/src/modules/auth/mobile/src/contexts/auth/mobile/src/screens/Login.tsxfrontend/src/pages/Login.tsx
- Ngôn ngữ chính
- TypeScript
- Star
- 3
- Fork
- 2
- Merge trung bình
- 18 phút
- Pull request đã merge (30 ngày)
- 118
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của code4romania/vic
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
code4romania/vic#638 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 1-2 ngày Mức phù hợp với người mới 52/100
code4romania/vic#639 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
code4romania/vic#637 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
needs-info vic-2.0
Độ khó 4/5 Nửa ngày Mức phù hợp với người mới 25/100
code4romania/vic#563 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
agent-ready devops enhancement :rocket: mobile-app vic-2.0
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
code4romania/vic#513 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của code4romania/vic
Issue tương tự
-
bug platform:mobile root-cause:found
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
openchamber/openchamber#6926 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
push-based/user-flow#356 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
Cygnux-Labs/Tracekit#827 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
www build: a refused import shows only "ENOENT scandir <outDir>", never the build-audience errorĐang mởkind:defect
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 91/100
Maintainer thường phản hồi trong vòng 1 ngày
-
type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
nightgauge/nightgauge#3266 ·
Maintainer thường phản hồi trong vòng 1 ngày