V7 Migration Guide
Copy a setup prompt with the install steps and the full markdown guide for this plugin.
Introduction
Section titled “Introduction”This guide will cover the following:
- Migrating to the V1 version from the
mainversion - Migrating to the V1 version from the
developmentversion
Important changes in V1
Section titled “Important changes in V1”V1 is just a port of the development version into main. It does, however, include a lot of important changes that are not available in the main V0 version. Those changes include:
- Access scopes for Google login
- Offline mode for Google login
- Unification of the different implementations
- Extensive testing was conducted to ensure that all implementations of the Google Provider behave in the same way between platforms
Migration from the V0 main version
Section titled “Migration from the V0 main version”-
Changes in the
MainActivity.javafor Android- Please follow the Google Setup Guide. Specifically, please search for
MainActivity.java
- Please follow the Google Setup Guide. Specifically, please search for
-
Please add redirect urls in the Google Console. Without adding redirect urls, Google login will not work.
- Again, please follow the Google Setup Guide. Specifically, please search for
Authorized redirect URIs
- Again, please follow the Google Setup Guide. Specifically, please search for
-
Please ensure that you are not using
grantOfflineAccessin the config. This feature is not supported in V1. -
Please ensure that authentication works on all the platforms.
Migration from the V0 development version
Section titled “Migration from the V0 development version”-
Changes in the
MainActivity.javafor Android- Please follow the Google Setup Guide. Specifically, please search for
MainActivity.java. In V1, you HAVE TO implementModifiedMainActivityForSocialLoginPluginin your main activity. This change is crucial for the plugin to work
- Please follow the Google Setup Guide. Specifically, please search for
-
Please add redirect urls in the Google Console. Without adding redirect urls, Google login will not work.
- Again, please follow the Google Setup Guide. Specifically, please search for
Authorized redirect URIs
- Again, please follow the Google Setup Guide. Specifically, please search for
-
Please ensure that types and variable names are correct. Please know that types and variables might not match between development and V1.
-
Please ensure that authentication works on all the platforms.
Keep going from V7 Migration Guide
Section titled “Keep going from V7 Migration Guide”If you are using V7 Migration Guide to plan authentication and account flows, connect it with Using @capgo/capacitor-social-login for the native capability in Using @capgo/capacitor-social-login, @capgo/capacitor-social-login for the implementation detail in @capgo/capacitor-social-login, @capgo/capacitor-passkey for the implementation detail in @capgo/capacitor-passkey, @capgo/capacitor-native-biometric for the implementation detail in @capgo/capacitor-native-biometric, and Two-factor authentication for the implementation detail in Two-factor authentication.