[types] Start on auth flow typings

This commit is contained in:
Chris Bianca
2017-11-17 14:22:46 +00:00
parent f1d8bee5b0
commit 746faad043
20 changed files with 296 additions and 253 deletions

View File

@@ -1,3 +1,7 @@
/**
* @flow
* FacebookAuthProvider representation wrapper
*/
const providerId = 'facebook.com';
export default class FacebookAuthProvider {
@@ -5,11 +9,11 @@ export default class FacebookAuthProvider {
throw new Error('`new FacebookAuthProvider()` is not supported on the native Firebase SDKs.');
}
static get PROVIDER_ID() {
static get PROVIDER_ID(): string {
return providerId;
}
static credential(token) {
static credential(token: string): AuthCredential {
return {
token,
secret: '',