UNPKG

618 BTypeScriptView Raw
1export = RNFirebaseuiAuth;
2
3declare namespace RNFirebaseuiAuth {
4 type User = {
5 uid: string;
6 displayName: string;
7 photoURL: string;
8 email: string;
9 phoneNumber: string;
10 providerId: string;
11 isNewUser: boolean;
12 creationTimestamp: number;
13 lastSignInTimestamp: number;
14 };
15
16 interface Config {
17 providers: string[];
18 tosUrl?: string;
19 privacyPolicyUrl?: string;
20 }
21
22 export function signIn(config: Config): Promise<User>;
23 export function getCurrentUser(): Promise<User|null>;
24 export function signOut(): Promise<boolean>;
25 export function delete(): Promise<boolean>;
26}