article illustration Release of a brand new Capacitor Social Login plugin
Capacitor
Last update: October 08, 2024

Release of a brand new Capacitor Social Login plugin

Introduction

Hey, I am Michael (WcaleNieWolny) 👋,

After a month of hard (and a bit painful 🙃) work, I am pleased to announce the first release of the Capacitor Social Login. This plugin is designed to assist in handling both Google and Apple Login on iOS and Android. Furthermore, together with Martin, we have been working on some unique features that include:

  • The introduction of Login with Apple on Android
  • The adoption of the new Google Credentials API
  • The addition of detailed documentation

Login with Apple on Android

First, let’s discuss the major innovation of ‘Login with Apple’ on Android. This was non-trivial, as Apple’s SDK doesn’t provide this functionality. I used this article 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:

Apple Login flow chart

Unfortunately, it requires a backend and some modifications to your’s app code, but it’s the best I could do.

Refreshed Google Login on Android

Next, I attempted to implement Google Login on Android. As it turns out, CodetrixStudio’s 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. This helped simply the login flow and it removed the annoying error 10 🎉

Documentation

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 for Login with Apple 🍎

Feel free to check out the Apple and Google guides!

Conclusion

In conclusion, the Capacitor Social Login plugin introduces a lot of new and exciting features with more to come in the future 🚀

최신 뉴스

Capgo는 진정으로 전문적인 모바일 앱을 만드는 데 필요한 최고의 인사이트를 제공합니다.