We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 498cf95 commit 445f663Copy full SHA for 445f663
packages/@react-oauth/google/src/GoogleLogin.tsx
@@ -12,8 +12,12 @@ import {
12
13
const containerHeightMap = { large: 40, medium: 32, small: 20 };
14
15
+type SuccessfulCredentialResponse = Omit<CredentialResponse, 'credential'> & {
16
+ credential: string;
17
+};
18
+
19
export type GoogleLoginProps = {
- onSuccess: (credentialResponse: CredentialResponse) => void;
20
+ onSuccess: (credentialResponse: SuccessfulCredentialResponse) => void;
21
onError?: () => void;
22
promptMomentNotification?: MomentListener;
23
useOneTap?: boolean;
0 commit comments