Skip to content

How do I get 'credential' of google's response? #129

Closed Answered by cuongdevjs
jaber-al-nahian-klikit asked this question in Q&A
Discussion options

You must be logged in to vote

There is my sample code:

                                        <LoginSocialGoogle
						client_id={}
						onLoginStart={onLoginStart}
						redirect_uri={REDIRECT_URI}
						typeResponse="idToken"
						scope="openid profile email"
						ux_mode="popup"
						onResolve={({ provider, data }) => {
							console.log("🚀 ~ file: App.js:89 ~ App ~ data:", data);
							setProvider(provider);
							setProfile(data);
						}}
						onReject={(err) => {
							console.log(err);
						}}
					>
						<GoogleLoginButton />
					</LoginSocialGoogle>

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by cuongdevjs
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants