Skip to content

Commit

Permalink
Remove console.log from callback
Browse files Browse the repository at this point in the history
Signed-off-by: oliver-youdooh <[email protected]>
  • Loading branch information
oliver-youdooh authored Sep 26, 2023
1 parent 69c4a0e commit 8eed702
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/composables/useOneTap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,14 +219,10 @@ export default function useOneTap(
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
client_id: clientId!,
callback: (credentialResponse: CredentialResponse) => {
if (process.env.NODE_ENV === 'development') {
console.log("cb triggered");
}
if (!credentialResponse.clientId || !credentialResponse.credential) {
onError?.();
return;
}

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

0 comments on commit 8eed702

Please sign in to comment.