WP-FE-ADM-LOGIN-01 — Dashboard login giống app + Google
Domain: D-AUTH · WP: WP-FE-ADM-LOGIN-01 · 2026-08-20 · ADM
Việc
Màn đăng nhập Dashboard bám app CON (LoginScreen + JPG bfb028…):
- Logo welife · chip Email OTP / Mật khẩu
- Ô email + mật khẩu (Hiện/Ẩn) · Ghi nhớ · Quên mật khẩu
- CTA stadium Đăng nhập / Gửi mã OTP
- OTP 6 ô · bước 2FA
- Hoặc đăng nhập với · vòng Google GIS →
POST /auth/google(cùng JWT với app) - Không đăng ký trên Dashboard
- Client: Google Identity Services (
accounts.google.com/gsi/client) - Audience:
VITE_GOOGLE_CLIENT_ID=GOOGLE_CLIENT_ID(Web) trên API - Deploy:
sync-dashboard-vps.shlấy Client ID từ/opt/welife/api/.env
OWNER: trên Google Cloud OAuth Web client, thêm Authorized JavaScript origins:
https://admin.minhtien.cloudhttp://localhost:5173
File
dashboard/src/modules/auth/LoginPanel.tsx·GoogleSignInButton.tsx·OtpBoxes.tsxdashboard/src/shared/googleSignIn.ts·api.ts(googleLogin)dashboard/public/welife-logo-icon.pngapi/src/modules/auth/dto/auth.dto.ts—idTokenmax 8192 (GIS)
Domain: D-AUTH
WP: WP-FE-ADM-LOGIN-01
Surfaces: ADM
Status: IMP
Local: tsc dashboard
Next: deploy dashboard nếu prod