Skip to content

Commit

Permalink
Merge pull request #82 from wavezync/revert-80-main
Browse files Browse the repository at this point in the history
Revert "fix: Google One Tap callback response does not contain clientId"
  • Loading branch information
kasvith authored Jul 26, 2024
2 parents ff826cb + ec7df9a commit 1f4756d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/composables/useOneTap.ts
Original file line number Diff line number Diff line change
Expand Up @@ -219,7 +219,7 @@ export default function useOneTap(
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
client_id: clientId!,
callback: (credentialResponse: CredentialResponse) => {
if (!credentialResponse.credential) {
if (!credentialResponse.clientId || !credentialResponse.credential) {
onError?.();
return;
}
Expand Down
4 changes: 2 additions & 2 deletions src/interfaces/accounts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,12 +57,12 @@ export interface CredentialResponse {
select_by?: SelectBy;

/**
* This field is only defined when user clicks a Sign in with Google button to sign in, and the button's state attribute is specified.
* Client ID returned from google
*
* @type {string}
* @memberof CredentialResponse
*/
state?: string;
clientId?: string;
}

/**
Expand Down

0 comments on commit 1f4756d

Please sign in to comment.