OAuth 2.0 · Web server
Đăng nhập Google
Máy chủ dùng google.auth.OAuth2 + generateAuthUrl (access_type=offline, include_granted_scopes, state, prompt=consent) rồi getToken đổi code lấy refresh token + access token, lưu MongoDB (account_api).
Tiếp tục với Google
GET /api/auth/google → Google → …/api/auth/google/callback?code=
Google Cloud — Loại: Ứng dụng web. URI chuyển hướng được uỷ quyền (khớp tuyệt đối, từng môi trường):
https://google1.hotzxgirl.online/api/auth/google/callback