56
Views
5
Comments
[Social Login Mobile] Getting "The Login was cancelled" error while using Social Login Mobile Plugin
social-login-mobile
Mobile icon
Forge asset by OutSystems
Application Type
Mobile

Hello Community, 


I have followed all the mentioned steps in the social login plugin documentation for mobile apps, but I am not able to get appropriate response and error details from the plugin. I have been through logs and cannot find anything there.


Can anyone please help me with this component's implementation if anyone has successfully integrated it in their application?

Regards,
Nikhil Purohit


2022-12-28 08-18-05
Nabil Kriden

- If you are trying to build a "debug" app, that error will show up. You need to generate a "release" build.
- You need to have two configurations for your google console app: 1. The first client id for web app which you configure from the social login configurator and 2. the second client id is for a mobile app and you add its configs via json file( The steps are clear and the json file example are in this post).

2021-02-17 18-31-05
Alexandre Jacinto
Staff

Hi @Nikhil Purohit! Thank you for your interest in our Social Login Mobile plugin.

In order to understand your use case, we would like to know what is the provider you are trying to login with. Is it Google?

Looking forward for your feedback.


Best regards,

Alexandre Jacinto

2019-07-05 10-57-41
Nikhil Purohit

Hi Alexandre,

Thanks for the follow-up on the issue. Yes, I am trying to perform login with Google.

I also need to go for Apple Login too after this.

Regards,
Nikhil Purohit

2021-02-17 18-31-05
Alexandre Jacinto
Staff

No problem!

The issue you are experiencing may have something to do with the SHA-1 certificate fingerprint you have set in your Client ID for Android configuration, in the Google Cloud Console.


Are you using a debug or production keystore to generate the SHA-1 certificate fingerprint? If you're using a debug one, then the Build Type of your app needs to "Debug". If instead you're using a production keystore, then the Build Type cannot be "Debug". It needs to be "Release" or "Google Play".


Does this help?

Best regards,

Alexandre Jacinto

2019-07-05 10-57-41
Nikhil Purohit

Hi Alexandre,


I have been through several posts online for generating Keystore file for SHA1 key. Can you please verify am I using the appropriate command to get one. I am also confused how to generate a Debug or Release SHA1 key now.

Please share your insights on this as I have attached the image for your reference, for the command that I am using to generate one. It being generated using Java SDK.


Regards,
Nikhil Purohit

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.