Skip to content

Commit

Permalink
chore: check androidClientId in config
Browse files Browse the repository at this point in the history
  • Loading branch information
vonovak committed Sep 1, 2024
1 parent d342a57 commit 05bc42e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/signIn/GoogleSignin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ function configure(options: ConfigureParams = {}): void {
if (options.offlineAccess && !options.webClientId) {
throw new Error('RNGoogleSignin: offline use requires server web ClientID');
}
if ('androidClientId' in options) {
console.error(
'RNGoogleSignIn: `androidClientId` is not a valid configuration parameter, please remove it.',
);
}

configPromise = NativeModule.configure(options);
}
Expand Down

0 comments on commit 05bc42e

Please sign in to comment.