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