Skip to content

Commit

Permalink
Merge pull request #54 from oliver-youdooh/bug/fix-console-log
Browse files Browse the repository at this point in the history
Add check for environment before debug logging
  • Loading branch information
kasvith authored Sep 26, 2023
2 parents 2bdfffd + 8eed702 commit d084631
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/composables/useOneTap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,12 +219,10 @@ export default function useOneTap(
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
client_id: clientId!,
callback: (credentialResponse: CredentialResponse) => {
console.log("cb triggered");
if (!credentialResponse.clientId || !credentialResponse.credential) {
onError?.();
return;
}

onSuccess?.(credentialResponse);
},
native_callback: (response: NativeCallbackResponse) => {
Expand Down

0 comments on commit d084631

Please sign in to comment.