When I authenticate a user via Firebase (below), the resulting user
contains a photoURL that has inverted colors. Click this jpg url to see the color inversion:
https://lh3.googleusercontent.com/-JVpfmGGJuO8/AAAAAAAAAAI/AAAAAAAAAME/sMJVq9F8gec/photo.jpg
Yet when I paste that URL into Stack Overflow's "image" editor button, it shows the image not inverted below:
signIn() {
var provider = new firebase.auth.GoogleAuthProvider();
provider.addScope('https://www.googleapis.com/auth/plus.login');
firebase.auth().signInWithPopup(provider).then((result: any) => {
this.user = result.user;
})
}
What's going on? Do I need to decompress the image somehow?
According to the documentation, the onAuthStateChanged() function returns. The unsubscribe function for the observer. So you can just: var unsubscribe = firebase.
The user's UID, as assigned by Firebase Authentication, is the key item of data that you'll make use of in security rules in order to determine what that user can do with documents in Cloud Firestore when accessed directly from a web or mobile app.
For future adventurers to this page: This problem only exists for Alphabet employees. Query the internal search engine and you'll solve it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With