UNPKG

578 BPlain TextView Raw
1import GoogleUser from './GoogleUser';
2
3export type GoogleSignInType = 'default' | 'games';
4
5export type GoogleSignInOptions = {
6 scopes?: string[];
7 webClientId?: string;
8 hostedDomain?: string;
9 accountName?: string;
10
11 // Android
12 signInType?: GoogleSignInType;
13 isOfflineEnabled?: boolean;
14 isPromptEnabled?: boolean;
15 // iOS
16 clientId?: string;
17 language?: string;
18 openIdRealm?: string;
19};
20
21export type GoogleSignInAuthResultType = 'success' | 'cancel';
22
23export type GoogleSignInAuthResult = {
24 type: GoogleSignInAuthResultType;
25 user?: GoogleUser | null;
26};