導入
こんにちは、私はマイケルです(WcaleNieWolny) 👋,
Capacitorのソーシャルログインの最初のリリースを発表することができて、嬉しいです。 このプラグインは、iOSとAndroidでGoogleとAppleログインを処理するのに役立ちます。 さらに、マーティンと一緒に、独自の機能を開発してきました。
- AndroidでAppleログインの導入
- AndroidでGoogleの新しいクレデンシャルAPIの採用
- 詳細なドキュメントの追加
AndroidでAppleログイン
First, let’s discuss the major innovation of ‘Appleのログイン’ on Android. This was non-trivial, as Apple’s SDK doesn’t provide this functionality. I used この記事 as my reference point, but I changed it a little in order to make it more secure. The flow I ended up looks like this:
Unfortunately, it requires a backend and some modifications to your’s app code, but it’s the best I could do.
Refreshed Googleログイン on Android
Next, I attempted to implement Googleログイン on Android. As it turns out, CodetrixStudioのCapacitorGoogleAuth uses a soon-to-be deprecated GMS library. As a result of this GMS library being considered legacy, I decided to use the CredentialManager. この機能はログインフローを簡素化し、不快なエラーを排除しました。 error 10 🎉
ドキュメント
最後に、素晴らしい ✨ ドキュメントを書きました。私は、ドキュメントが正確で詳細であることを確認するために多くの時間を費やしました。 ドキュメントには、Apple と Google の両方の設定に関する詳細なガイドが含まれます。また、Login with Apple 🍎 のための例のバックエンドも提供しています。 Apple と Google のガイドをご確認ください!
Apple Google ガイド 結論 Lastly, I wrote some amazing ✨ documentation. I spent a lot of time making sure that the docs were accurate and extensive. The docs include a detailed guide on setting both Apple and Google. I also provided an
example backend
最終的に、Capacitor Social Login プラグインは、将来さらに多くの新しい機能を導入します 🚀
Capacitor Social Login プラグインのリリースから続けてください
Capgoを使用している場合 Capacitor Social Login プラグインのリリース 認証とアカウントフローの計画に使用し、Cloudflareに接続する @capgo/capacitor-social-login Capacitorの@capgo/capacitor-social-loginの実装詳細 @capgo/capacitor-passkey Capacitorの@capgo/capacitor-passkeyの実装詳細 @capgo/capacitor-native-biometric Capacitorの@capgo/capacitor-native-biometricの実装詳細 二要素認証 __CAPGO_KEEP_0__の実装詳細については、Two-factor authenticationの SSO (Enterprise)の__CAPGO_KEEP_0__の実装詳細については、 __CAPGO_KEEP_0__