Hiển thị trình quản lý thông tin xác thực gốc của trình duyệt
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.
Trình quản lý thông tin xác thực gốc của trình duyệt lưu trữ thông tin xác thực mật khẩu của người dùng. Để bật trình quản lý thông tin xác thực gốc của trình duyệt, hãy đặt thuộc tính data-native_login_uri.
Lời nhắc Một lần chạm và hộp thoại trình quản lý thông tin xác thực gốc không hiển thị cùng nhau trên cùng một trang. Hộp thoại gốc chỉ hiển thị khi lời nhắc Nhấn một lần không xuất hiện. Hãy xem ví dụ về mã sau:
[null,null,["Cập nhật lần gần đây nhất: 2024-11-08 UTC."],[[["\u003cp\u003eThe default login flow can be customized to better suit specific needs.\u003c/p\u003e\n"],["\u003cp\u003eYou can enable the browser's native credential manager by setting the \u003ccode\u003edata-native_login_uri\u003c/code\u003e attribute to handle password logins separately.\u003c/p\u003e\n"],["\u003cp\u003eThe native credential manager dialog and the One Tap prompt are mutually exclusive, with the native dialog appearing only when One Tap is not shown.\u003c/p\u003e\n"]]],[],null,["# Display the browser's native credential manager\n\n| **Objective:** If the default login flow doesn't meet your requirements, you can customize it in several ways. Read the following information for available customization options.\n\nA browser's native credential manager stores a user's password credentials. To\nenable the browser's native credential manager, set the `data-native_login_uri`\nattribute.\n\nThe One Tap prompt and the native credential manager dialog aren't displayed\ntogether on the same page. The native dialog is only displayed when the One Tap\nprompt isn't displayed. See the following code example: \n\n \u003cdiv id=\"g_id_onload\"\n data-client_id=\"\u003cvar translate=\"no\"\u003eYOUR_GOOGLE_CLIENT_ID\u003c/var\u003e\"\n data-login_uri=\"\u003cvar translate=\"no\"\u003ehttps://your.domain/your_login_endpoint\u003c/var\u003e\"\n data-native_login_uri=\"\u003cvar translate=\"no\"\u003ehttps://your.domain/your_password_login_endpoint\u003c/var\u003e\"\u003e\n \u003c/div\u003e"]]