سيتم نقل "خدمات هوية Google" إلى واجهات برمجة تطبيقات FedCM. يُرجى اتّباع دليل نقل البيانات لمراجعة التغييرات المحتملة وتجنُّب التأثيرات السلبية على تسجيل دخول المستخدمين إلى موقعك الإلكتروني.
يمكنك استخدام رمز JavaScript فقط لعرض طلب One Tap
أو عرض زر "تسجيل الدخول باستخدام حساب Google"، إذا كنت تفضّل ذلك.
لضبط طلب One Tap في JavaScript، عليك أولاً استدعاء الأسلوب
initialize(). بعد ذلك، يمكنك استدعاء الطريقة prompt() لعرض واجهة مستخدم الطلب. راجِع مقتطف الرمز البرمجي التالي:
تاريخ التعديل الأخير: 2024-11-23 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-11-23 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Developers can customize the default login flow using JavaScript to better suit their specific needs."],["You can trigger the One Tap prompt or display the Sign in with Google button programmatically using JavaScript."],["The `initialize()` and `prompt()` methods are key to configuring and displaying the One Tap prompt in your web application."],["To receive updates on the prompt's status, such as if it's not displayed or skipped by the user, a callback function can be provided to the `prompt()` method."],["JavaScript allows for rendering both the One Tap prompt and the Sign in with Google button, offering users flexible login options."]]],[]]