Skip to content

Commit 90bade6

Browse files
committed
refactor: review over apps/meteor/app/lib/server/oauth/google.ts
1 parent 998bcd9 commit 90bade6

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

apps/meteor/app/lib/server/oauth/google.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ registerAccessTokenService('google', async (options) => {
6262
};
6363

6464
const fields: Record<string, any> = {};
65-
const { whitelistedFields } = Google as any;
65+
const { whitelistedFields } = Google;
6666
for (const key of whitelistedFields) {
6767
if (Object.prototype.hasOwnProperty.call(identity, key)) {
6868
fields[key] = identity[key];
Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,14 @@
11
declare module 'meteor/google-oauth' {
2-
export const Google: any;
2+
export const Google: {
3+
readonly name: string;
4+
readonly whitelistedFields: string[];
5+
requestCredential(
6+
options: Meteor.LoginWithExternalServiceOptions | undefined,
7+
credentialRequestCompleteCallback: (credentialTokenOrError?: string | Error) => void,
8+
): void;
9+
signIn?(
10+
options: Meteor.LoginWithExternalServiceOptions | undefined,
11+
callback?: (error: LoginError | undefined, result?: unknown) => void,
12+
): void;
13+
};
314
}

0 commit comments

Comments
 (0)