msukmanowsky / gapi-firebase Goto Github PK
View Code? Open in Web Editor NEWAn example of how to use GAPI and Firebase Auth together to authenticate users and talk to Google APIs.
An example of how to use GAPI and Firebase Auth together to authenticate users and talk to Google APIs.
I’ve done what you said in the read me and it works great!
My question is that since firebase allows you to have multiple providers, how can I use the google API if I signed in with another provider?
For example, I have Google and Password as providers, and the scopes are set for google to access the APIs, however the user signed in with a password. Can I somehow take that password authentication and sign into Gapi?
Hi @msukmanowsky! Your example is great and I think i'm going to be able to get it working in react. Thanks for taking the initiative on this.
It would be great if there were examples for React and Next (and i assume other people would be interested in seeing it work on their frameworks of choice...)
Cheers.
This is a great demo and it really does tackle the exact issue I've run into. However, the usage of gapi.auth2
is being deprecated and removed in a few months, so this example won't be a long-term solution.
Updating this code example to use the new identity system in combination with Firebase would be very helpful.
Thanks for publishing this! It's very helpful.
Just a note that signInAndRetrieveDataWithCredential is now deprecated in favor of signInWithCredential. It appears to be merely a name change.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.