-
-
Notifications
You must be signed in to change notification settings - Fork 18
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google login web not returning any data. #46
Comments
Same issue with me :( |
There is an open PR addressing this issue: #37 |
This does not look like a problem with the plugin. The stacktrace does not mention CapacitorSociaLogin once |
Hey @Saqib92 this is my mail can you send me the sample code |
what issue are you facing. your image is broken. |
my implementation:
|
Same here, no response after login at all. |
I'm looking with @Saqib92 to find a fix |
Demo Repo to reproduce issue: |
@Saqib92 you want to remove const res = await SocialLogin.login({
provider: 'google',
options: {
scopes: ['email', 'profile'], // <--- this is bad
},
}); I did not implement scopes yet. It's something that could be implemented in the near future, but for the time being if you set |
The correct way would be: const res = await SocialLogin.login({
provider: 'google',
options: {},
}); This works better, but you get this error Please make sure you don't have any redirect URLs added in the Google Console. This is clearly mentioned in the documentation |
Thank you, But i do require scopes as my app targets some sensitive scopes, like spreadsheet read and write permission via serverAuthCode and refresh token. |
I could implement additional scopes, but first please make sure that your app works with the current version of the plugin. Please let me know if removing scopes fixed your problem |
Yes, i can confirm it is working on Web WITHOUT scopes. |
Hey @Saqib92 |
Hi, I just build my app for production and tried google login on android device. After click on google login button the alert to select account is presented. After selecting account alert is closed but I have an error in sentry EDIT: On debug version, it works like a charm. Thanks |
What version are you on, and have you followed the setup guide? |
Sure, by the setup guide I have this function:
Version of
|
Please Email me at: [email protected] |
Can you try the "0.0.68-alpha.2" and follow the guide? |
Hey @Saqib92 I am getting this error on ios anyone please help me i have a strict dead line ![]() |
@MalikHamza007 This is not an issues with the capacitor social login. As you can see, the capacitor social login plugin is using the latest Please contact the owner of |
@riderx has requested that I implement |
Thank you, It looks working like a charm :-) |
Is this done? I need SCOPES.. |
Yes it is, try the 0.0.68-alpha.7 on NPM |
Please read the docs. |
Here are the docs for offline access |
|
I'm still not getting any response on web even with version |
@playaz87 Yes, that is a known bug. Please use the development version which currently is @riderx has not yet had time to review #57 thus, all the fixes, changes to google are not implemented on main |
Also, if you do use the |
v.0.0.68-alpha.7 returns data on browser after sign in, however On v.0.0.68-alpha.7 i see the following error passing my credential to Firebase. I think the accessToken?.token is not what Google is expecting ;
Here is my implementation;
|
Is there a way to pass access_token or server_auth_code to firebase? id_token is not returned because it's simply impossible to get in the web version of this plugin. |
Yes my google auth on browser was working well with this plugin before i ran upgrades this morning :p Firebase has a signInWithCredential method which is essentially expecting the access token, but its not happy with what its receiving now. I have suspicions its related to this change |
@WcaleNieWolny thanks, the alpha version is working |
@riderx please review and merge, so we can go into production. |
Yes, the development version is unfortunately a breaking change. As for firebase, can you attempt to use |
You may also be able to use serverAuthCode with a custom edge function to return the refresh token and access token back to the client. This is referred as "offline mode" in the docs |
@WcaleNieWolny TYSM! Solved this by adding null as the first parameter to credential!
![]() |
Hi again, on version 0.0.87 google login on web to not return accessToken. Other data are fine... Response from Google login: |
Google Login not working in browser. it open google login window and after authorizing it closes but data is not returning.
The text was updated successfully, but these errors were encountered: