Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Môi trường được hỗ trợ
Tính năng Đăng nhập bằng Google chính thức hỗ trợ các trình duyệt và nền tảng sau:
Google Chrome trên macOS, Windows, Linux, Android, iOS
Mozilla Firefox trên macOS, Windows, Linux
Safari trên macOS và iOS
Các phiên bản Internet Explorer từ 8 đến 11 trên Windows
Microsoft Edge trên Windows
Vấn đề đã biết
Sau đây là các vấn đề đã biết mà bạn có thể gặp phải khi sử dụng tính năng Đăng nhập bằng Google.
Đã chặn dữ liệu và cookie của bên thứ ba
Khi được bật, tính năng bảo vệ quyền riêng tư này sẽ huỷ kích hoạt tất cả cookie và bộ nhớ trong iframe. Google yêu cầu thông tin này để xác thực người dùng một cách an toàn.
Một giải pháp là yêu cầu những người dùng đã tắt dữ liệu của bên thứ ba tạo một trường hợp ngoại lệ cho https://accounts.google.com bằng cách thêm accounts.google.com vào miền được phép. Trong Chrome, hãy thực hiện thao tác này trong chrome://settings/cookies.
Nếu nhiều người dùng bật tính năng này (một số công ty bắt buộc tất cả nhân viên phải sử dụng chế độ cài đặt này), thì một giải pháp khác là triển khai quy trình OAuth 2.0 phía máy chủ.
Chrome trên iOS ở Chế độ ẩn danh
Tính năng Đăng nhập bằng Google không hỗ trợ chế độ ẩn danh trên Chrome dành cho iOS.
Safari có tính năng Ngăn chặn theo dõi thông minh
Tính năng mới này của macOS High Sierra và iOS 11 sẽ vô hiệu hoá cookie của bên thứ ba sau mỗi 24 giờ, trừ phi người dùng tương tác với một trong các trang của miền bên thứ ba. Thư viện Đăng nhập bằng Google dựa vào cookie để xác thực người dùng một cách an toàn. Có khả năng phát hiện thấy người dùng đã đăng xuất sau mỗi 24 giờ. Người dùng phải thực hiện lại quy trình đăng nhập để kích hoạt lại cookie.
[null,null,["Cập nhật lần gần đây nhất: 2025-08-06 UTC."],[[["\u003cp\u003eGoogle Sign-In is being deprecated; consult the Deprecation and Sunset guide for more information and migration planning.\u003c/p\u003e\n"],["\u003cp\u003eFedCM APIs will become mandatory for the Google Sign-In library, requiring an impact assessment to ensure continued functionality.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Sign-In supports a range of browsers and platforms, including Chrome, Firefox, Safari, Internet Explorer, and Edge.\u003c/p\u003e\n"],["\u003cp\u003ePotential issues include third-party cookie blocking and Intelligent Tracking Prevention, with solutions and workarounds detailed within the content.\u003c/p\u003e\n"]]],[],null,["# Troubleshooting\n\n| **Warning:** The Google Sign-In library optionally uses FedCM APIs, and their use will become a requirement. [Conduct an impact assessment](/identity/sign-in/web/gsi-with-fedcm) to confirm that user sign-in continues to function as expected. \n|\n| Support for the Google Sign-In library is deprecated, see the [Deprecation and Sunset](/identity/sign-in/web/deprecation-and-sunset) guide for more.\n\nSupported environments\n----------------------\n\nGoogle Sign-In officially supports the following browsers and platforms:\n\n- Google Chrome on macOS, Windows, Linux, Android, iOS\n- Mozilla Firefox on macOS, Windows, Linux\n- Safari on macOS and iOS\n- Internet Explorer versions from 8 to 11 on Windows\n- Microsoft Edge on Windows\n\nKnown issues\n------------\n\nThe following are known issues that you might encounter when using Google\nSign-In.\n\n### Third-party cookies and data blocked\n\nWhen enabled, this privacy feature deactivates all cookies and storage within\nthe iframe. Google requires this for secure user authentication.\n\nOne solution is to ask users who have disabled third-party data to create an\nexception for `https://accounts.google.com` by adding `accounts.google.com` to\nthe allowed domains. In Chrome, do this in `chrome://settings/cookies`.\n\nIf many of your users enable this feature (some companies enforce this\nsetting for all their employees), another workaround is to implement a\n[server-side OAuth 2.0 flow](https://developers.google.com/identity/protocols/oauth2/web-server).\n\n### Chrome on iOS in Incognito Mode\n\nGoogle Sign-in does not support incognito mode on Chrome on iOS.\n\n### Safari with Intelligent Tracking Prevention\n\nThis new feature of macOS High Sierra and iOS 11 deactivates third-party cookies\nevery 24 hours, unless the user interacts with one of the page of the\nthird-party domain. The Google Sign-in library relies on cookies to securely\nauthenticate the user. It potentially detects that the user is logged out every\n24 hours. The user must go through the sign in flow again to reactivate the\ncookies.\n\nAny other issue?\n----------------\n\nGo to our\n[GitHub issue tracker](https://github.com/google/google-api-javascript-client/issues)\nfor any other issue with the Google Sign-In library."]]