mirror of
https://github.com/zhigang1992/react-native-firebase.git
synced 2026-04-28 12:15:44 +08:00
[types] Start on auth flow typings
This commit is contained in:
@@ -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: '',
|
||||
|
||||
Reference in New Issue
Block a user