diff --git a/firebase/firebase.d.ts b/firebase/firebase.d.ts index df792c7134..0c316b638a 100644 --- a/firebase/firebase.d.ts +++ b/firebase/firebase.d.ts @@ -1,6 +1,6 @@ // Type definitions for Firebase API 2.0.2 // Project: https://www.firebase.com/docs/javascript/firebase -// Definitions by: Vincent Botone , Shin1 Kashimura +// Definitions by: Vincent Botone , Shin1 Kashimura , Sebastien Dubois // Definitions: https://github.com/borisyankov/DefinitelyTyped interface FirebaseAuthResult { @@ -317,6 +317,27 @@ interface FirebaseAuthData { token: string; expires: number; auth: Object; + google?: FirebaseAuthDataGoogle; +} + +interface FirebaseAuthDataGoogle { + accessToken: string; + cachedUserProfile: FirebaseAuthDataGoogleCachedUserProfile; + displayName: string; + email?: string; + id: string; + profileImageURL: string; +} + +interface FirebaseAuthDataGoogleCachedUserProfile { + "family name"?: string; + gender?: string; + "given name"?: string; + id?: string; + link?: string; + locale?: string; + name?: string; + picture?: string; } interface FirebaseCredentials {