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

Brave Browser Login GAIA chrome.identity.getAuthToken not working #419

Closed
jamesturnernz opened this issue Feb 13, 2020 · 1 comment
Closed

Comments

@jamesturnernz
Copy link

chrome.identity.getAuthToken({interactive: !!interactive}, function(token) {

Hi, in Brave Browser currently Version 1.3.115 Chromium: 80.0.3987.87 (Official Build) (64-bit)

I'm unable to login. Apparently, Google GAIA is not supported, the call chrome.identity.getAuthToken() returns the runtime error
Unchecked runtime.lastError: The user turned off browser signin.

" pilgrim-brave commented on Jan 14
Confirmed. GAIA is unavailable in Brave in any context."
brave/brave-browser#7693

Is there a possible solution or alternative or work-around to this issue in Brave please?

@jamesturnernz
Copy link
Author

SOLVED: I have moved away from chrome.identity as it's not going to work with Brave, FireFox and possibly the new Edge when it comes out.

I have used as suggested elsewhere, firebase.auth().signInWithPopup() which will be cross browser friendly. Have it working in Chrome and Brave right now.
Reference page: https://firebase.google.com/docs/auth/web/google-signin

SUGGESTION: It maybe worth updating the example to either have a second example, or fall back to popup if chrome.identity is not supported.

Thank you

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

1 participant