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.
Như đã thông báo trong thông báo về việc xác thực và uỷ quyền, chúng tôi sẽ ngừng hỗ trợ thư viện JavaScript Đăng nhập bằng Google kể từ ngày 31 tháng 3 năm 2023.
Kể từ quý 1 năm 2024, trong quá trình thử nghiệm do Chrome hỗ trợ, 1% người dùng Chrome phiên bản ổn định sẽ tắt cookie của bên thứ ba. Để tránh làm gián đoạn tính năng Đăng nhập bằng Google cho người dùng, thư viện này là một phần của bản dùng thử về việc ngừng sử dụng Hộp cát về quyền riêng tư của Chrome. Trong thời gian dùng thử, việc triển khai tính năng chặn cookie của bên thứ ba sẽ không ảnh hưởng đến việc sử dụng thư viện này.
Chúng tôi sẽ ngừng hỗ trợ thư viện JavaScript Đăng nhập bằng Google kể từ ngày 31 tháng 3 năm 2023.
Mã ứng dụng OAuth mới không thể sử dụng thư viện không dùng nữa.
Các mã ứng dụng hiện có được tạo trước ngày 29 tháng 7 năm 2022 có thể đặt
plugin_name để tiếp tục sử dụng thư viện.
Ngày ngừng hoạt động (tắt) của thư viện không dùng nữa vẫn chưa được xác định.
Chúng tôi sẽ gửi thông báo trước cho những nhà phát triển bị ảnh hưởng khi xác nhận ngày ngừng hoạt động. Đảm bảo thông tin liên hệ của Dự án Google Cloud Platform được liên kết với(các) mã ứng dụng khách OAuth là chính xác.
Chúng tôi cũng sẽ thông báo ngày ngừng cung cấp dịch vụ tại đây. Hãy đánh dấu trang này và thường xuyên quay lại để xem thông tin cập nhật.
Để biết hướng dẫn chi tiết về cách di chuyển ứng dụng web của bạn từ thư viện JavaScript Đăng nhập bằng Google (không dùng nữa) sang thư viện Dịch vụ nhận dạng của Google, hãy xem hướng dẫn di chuyển:
Bảng này chứa thông tin về ngày ngừng sử dụng và ngày ngừng hoạt động cụ thể.
Thư viện
Ngày ngừng sử dụng
Ngày ngừng hoạt động
JavaScript Đăng nhập bằng Google cho web
Ngày 31 tháng 3 năm 2023
Sẽ được xác định sau
Sự khác biệt giữa việc ngừng sử dụng và ngừng cung cấp
Thuật ngữ
Ngừng sử dụng
Hoàng hôn
Định nghĩa
Thư viện không dùng nữa là một phiên bản không phải là phiên bản mới nhất.
Bạn không thể sử dụng thư viện ngừng hoạt động nữa. Các yêu cầu gửi đến thư viện này sẽ không thành công kể từ ngày ngừng hoạt động.
Hậu quả
Đối với(các) mã ứng dụng OAuth hiện có sử dụng thư viện không dùng nữa, bạn vẫn có thể sử dụng thư viện không dùng nữa cho đến khi các mã đó ngừng hoạt động, nhưng mọi mã ứng dụng OAuth mới đều không thể sử dụng thư viện không dùng nữa.
Di chuyển sang thư viện Dịch vụ nhận dạng của Google càng sớm càng tốt để
hưởng lợi từ các tính năng mới.
Bạn cần di chuyển khỏi thư viện ngừng hoạt động ngay lập tức để sử dụng các dịch vụ của Google.
[null,null,["Cập nhật lần gần đây nhất: 2025-07-25 UTC."],[[["\u003cp\u003eSupport for the Google Sign-In JavaScript library is deprecated as of March 31, 2023, and will eventually be sunsetted.\u003c/p\u003e\n"],["\u003cp\u003eGoogle Identity Services for Web is the recommended replacement for signing in users with Google Accounts.\u003c/p\u003e\n"],["\u003cp\u003eExisting client IDs can continue using the deprecated library until sunset, but new client IDs must use Google Identity Services.\u003c/p\u003e\n"],["\u003cp\u003eMigration guides are available for both authentication and authorization flows to help developers transition to the new library.\u003c/p\u003e\n"],["\u003cp\u003eChrome users may experience disruptions with the deprecated library due to third-party cookie blocking, but this is mitigated during the deprecation trial.\u003c/p\u003e\n"]]],[],null,["# Deprecation and Sunset\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\nAs communicated by the [authentication](https://developers.googleblog.com/2021/08/gsi-jsweb-deprecation.html) and [authorization](https://developers.googleblog.com/2022/03/gis-jsweb-authz-migration.html)\nannouncements, support for the [Google Sign-In](/identity/sign-in/web/sign-in) JavaScript library is\ndeprecated as of March 31, 2023.\n\nStarting Q1 2024 as part of [Chrome-facilitated testing](https://developer.chrome.com/docs/privacy-sandbox/chrome-testing/), 1% of Chrome\nStable users disable third-party cookies. To prevent breaking Google Sign-In\nfor users, this library is part of Chrome's Privacy Sandbox\n[deprecation trial](https://developers.google.com/privacy-sandbox/3pcd/temporary-exceptions/third-party-deprecation-trial#deprecation_trials). For the duration of the trial use of this library is\nnot affected by the rollout of third-party cookie blocking.\n\n[Google Identity Services for Web](/identity/gsi/web/guides/overview) is the new, more secure way to sign in\nusers with Google Accounts and should be used instead.\n\nKey points\n----------\n\n- Support for the Google Sign-in JavaScript library is deprecated as of March 31, 2023.\n- New OAuth Client IDs cannot use the deprecated library.\n- Existing Client IDs created before July 29th, 2022 may set [`plugin_name`](/identity/sign-in/web/reference#gapiauth2clientconfig) to continue using the library.\n- Sunset (shutdown) date of the deprecated library is yet to be determined.\n- We'll send out advanced notices to affected developers when sunset date is confirmed. Make sure your [Google Cloud Platform](https://console.cloud.google.com/) Project contact information associated with your OAuth client ID(s) is correct.\n- We'll also announce the sunset date here. Bookmark this page and come back often for updates.\n- The deprecation only affects the Google Sign-In JavaScript library for Web. If you are using the [One Tap sign-in on Android](/identity/one-tap/android/overview) SDK, the [Google Sign-in for iOS and macOS](/identity/sign-in/ios/start) SDK, or [OAuth 2.0](/identity/protocols/oauth2) for authentication or authorization, this deprecation does not affect your app(s).\n\nMigration Guides\n----------------\n\nFor detailed instructions on how to migrate your web app from the deprecated\nGoogle Sign-In JavaScript library to the Google Identity Services library,\nsee the migration guides:\n\n- Authentication, for user sign-in - [Migrating from Google Sign-In](/identity/gsi/web/guides/migration)\n- Authorization - [Migrate to Google Identity Services](/identity/oauth2/web/guides/migration-to-gis)\n\nTimetable\n---------\n\nThis table contains the specific deprecation and sunset dates.\n\n| Library | Deprecation date | Sunset date |\n|-----------------------------------|------------------|------------------|\n| Google Sign-in JavaScript for Web | March 31, 2023 | To be determined |\n\n| **Note:** When the sunset date is confirmed, we'll notify affected web apps and make an announcement on this page.\n\nDifferences between deprecation and sunset\n------------------------------------------\n\n| Term | Deprecation | Sunset |\n|-----------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------|\n| **Definition** | The deprecated library is a version that is *not the latest one*. | The sunset library can *no longer be used*. Requests sent to this library will fail on or after the sunset date. |\n| **Implication** | For existing OAuth client ID(s) using the deprecated library, you can still use the deprecated library until they're *sunset* , but any new OAuth client ID cannot use the deprecated library. Migrate to the Google Identity Services library as soon as possible to benefit from new features. | You need to migrate off the sunset library *immediately* in order to use Google services. |"]]