mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-03-29 00:18:20 +08:00
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
This commit is contained in:
committed by
Masahiro Wakame
parent
2712dd1e88
commit
73fa26213a
40
firebase/firebase.d.ts
vendored
40
firebase/firebase.d.ts
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user