Skip to content
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 one tap login, Worked before, but now get "The selected credential for the authentication provider is not supported!" #1079

Open
rjjan opened this issue Apr 11, 2024 · 13 comments
Assignees

Comments

@rjjan
Copy link

rjjan commented Apr 11, 2024

[REQUIRED] Describe your environment

  • Operating System version: Ubuntu_
  • Browser version: Version 123.0.6312.105 (Official Build) (64-bit)___
  • Firebase UI version: 6.1.0_
  • Firebase SDK version: 10.10.0_

[REQUIRED] Describe the problem

Google one tap login
Same as sample code
Worked before
now get "The selected credential for the authentication provider is not supported!"
console log is
[GSI_LOGGER]: FedCM get() rejects with AbortError

Steps to reproduce:

Relevant Code:

https://stackblitz.com/fork/firebase-issue-sandbox

// TODO(you): code here to reproduce the problem
@louisptremblay
Copy link

Experiencing same issue, even with the demo from this project's Readme:

Screenshot 2024-04-11 at 10 33 26 AM

https://fir-ui-demo-84a6c.firebaseapp.com/

@Jens-Co
Copy link

Jens-Co commented Apr 13, 2024

Running into the same problem, Using safari/edge/firefox does work.

@androng
Copy link

androng commented Apr 14, 2024

I have the same issue. However, Google login (the button above Facebook) worked so I plan on just disabling the Google one-tap login.

@jhuleatt jhuleatt self-assigned this Apr 15, 2024
@orzcode
Copy link

orzcode commented Apr 17, 2024

Currently having the same issue.

1 similar comment
@bcat95
Copy link

bcat95 commented Apr 17, 2024

Currently having the same issue.

@giriraj-hh
Copy link

We are also running into the same issue, is there a workaround for this?

@bcat95
Copy link

bcat95 commented Apr 19, 2024

Currently having the same issue.

@lelyu
Copy link

lelyu commented Apr 20, 2024

I'm having the same issue

@orbachar
Copy link

had the same issue, fixed it by implementing Google one tap on our side and then use signInWithCredential to login to firebase

https://contextify.dev/blog/google-one-tap-login-firebase/

@frascavone
Copy link

had the same issue, fixed it by implementing Google one tap on our side and then use signInWithCredential to login to firebase

https://contextify.dev/blog/google-one-tap-login-firebase/

Hi! I have the same problem in a nextjs 14 app using app router. but the linked solution did't work for me. Can you please provide more info ?

@mindtricksdev
Copy link

same problem here, neither the readme nor the proposed workaround worked.

ChrisRoss5 added a commit to ChrisRoss5/kiki-storage-web that referenced this issue Sep 30, 2024
@bcat95
Copy link

bcat95 commented Nov 15, 2024

Only crashes on chrome pc and works on mobile and edege
This is a change to the code

function getUiConfig() {
      const userAgent = navigator.userAgent.toLowerCase();
      const isWindowsOrMac = /windows nt|macintosh/i.test(userAgent);
      const isChrome = userAgent.includes('chrome') && !userAgent.includes('edg');

      return {
          callbacks: {
              signInSuccessWithAuthResult: function(authResult, redirectUrl) {
                  return false;
              }
          },
          signInFlow: 'popup',
          signInOptions: [
              {
                  provider: firebase.auth.GoogleAuthProvider.PROVIDER_ID,
                  clientId: CLIENT_ID
              }
          ],
          credentialHelper: (isWindowsOrMac && isChrome && CLIENT_ID && CLIENT_ID !== 'YOUR_OAUTH_CLIENT_ID') 
              ? firebaseui.auth.CredentialHelper.NONE 
              : firebaseui.auth.CredentialHelper.GOOGLE_YOLO
      };
  }

@aarhus
Copy link

aarhus commented Nov 23, 2024

Same issue, using the userAgent detection that @bcat95 provides above reduces the impact

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests