Melakukan Autentikasi Menggunakan Penyedia OAuth dengan Cordova
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Dengan Firebase JS SDK, Anda dapat mengizinkan pengguna melakukan autentikasi menggunakan penyedia OAuth yang didukung di lingkungan Cordova. Anda dapat mengintegrasikan penyedia OAuth yang didukung dengan menjalankan alur OAuth secara manual dan meneruskan kredensial OAuth yang dihasilkan ke Firebase.
Petunjuk tentang cara menangani alur login secara manual untuk setiap penyedia:
Setelah Anda mendapatkan token ID Apple pengguna, gunakan token tersebut untuk mem-build objek Kredensial, kemudian terapkan login pengguna dengan kredensial tersebut:
[null,null,["Terakhir diperbarui pada 2025-08-16 UTC."],[],[],null,["# Authenticate Using OAuth Providers with Cordova\n\n| **Warning** : The following three Firebase Authentication features\n| are impacted by the shutdown of Firebase Dynamic Links on August 25, 2025:\n| email link authentication for mobile apps, OAuth flows for Android apps\n| using older versions of the Authentication SDK, and Cordova OAuth support for\n| web apps. In order to use these features after the shutdown of Dynamic Links,\n| migrate to use a newer SDK version and complete some additional steps.\n|\n| For specific information and migration guidance, visit the\n| [Dynamic Links\n| Deprecation FAQ](/support/dynamic-links-faq#impacts-on-email-link-authentication).\n\nWith the Firebase JS SDK, you can let your Firebase users authenticate using any\nsupported OAuth provider in a Cordova environment. You can integrate any\nsupported OAuth provider by carrying out the OAuth flow manually and passing the\nresulting OAuth credential to Firebase.\n\nInstructions on how to handle the sign-in flow manually for each provider:\n\n- [Google](/docs/auth/web/google-signin#expandable-2)\n- [Facebook](/docs/auth/web/facebook-login#expandable-2)\n- [Twitter](/docs/auth/web/twitter-login#handle_the_sign-in_flow_manually)\n- [GitHub](/docs/auth/web/github-auth#handle_the_sign-in_flow_manually)\n- [Microsoft](/docs/auth/web/microsoft-oauth#expandable-2)\n- [Yahoo](/docs/auth/web/yahoo-oauth#expandable-2)\n- Apple\n 1. Follow [Configuring your webpage for Sign in with\n Apple](https://developer.apple.com/documentation/signinwithapplejs/configuring_your_webpage_for_sign_in_with_apple) to sign in the user with their Apple Account and get the user's Apple ID token.\n 2. After you get the user's Apple ID token, use it to build a [Credential\n object](/docs/auth/web/apple#advanced_authenticate_with_firebase_in_nodejs) and then sign in the user with the credential."]]