From 73fa26213aa5d2e1de5d7c2cc74118108cb2e5fa Mon Sep 17 00:00:00 2001 From: Felipe Lima Date: Tue, 12 Apr 2016 09:51:05 -0300 Subject: [PATCH] Firebase: Generic Github, Twitter and Facebook authentication providers (#8870) * Firebase: Generic Github, Twitter and Facebook authentication providers * Firebase: Authentication definitions for Email and Password, Twitter, Github, Facebook and Anonymous --- firebase/firebase.d.ts | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/firebase/firebase.d.ts b/firebase/firebase.d.ts index cceaaf506f..132973e916 100644 --- a/firebase/firebase.d.ts +++ b/firebase/firebase.d.ts @@ -334,6 +334,46 @@ interface FirebaseAuthData { expires: number; auth: Object; google?: FirebaseAuthDataGoogle; + twitter?: FirebaseAuthDataTwitter; + github?: FirebaseAuthDataGithub; + facebook?: FirebaseAuthDataFacebook; + password?: FirebaseAuthDataPassword; + anonymous?: any; +} + +interface FirebaseAuthDataPassword{ + email: string; + isTemporaryPassword: boolean; + profileImageURL: string; +} + +interface FirebaseAuthDataTwitter{ + id: string; + accessToken: string; + accessTokenSecret: string; + displayName: string; + username: string; + profileImageURL: string; + cachedUserProfile: any; +} + +interface FirebaseAuthDataGithub{ + id: string; + accessToken: string; + displayName: string; + email?: string; + username: string; + profileImageURL: string; + cachedUserProfile: any; +} + +interface FirebaseAuthDataFacebook{ + id: string; + accessToken: string; + displayName: string; + email?: string; + profileImageURL: string; + cachedUserProfile: any; } interface FirebaseAuthDataGoogle {