Closed Mudassar-dev closed 11 months ago
please give me your code. I've tried on the site demo and it still works
@cuongdevjs please look into it
please give me your code
or re-check the account's permission
Code:
<LoginSocialGoogle
client_id={process.env.REACT_APP_GOOGLE_CLIENT_ID || ""}
cookiePolicy={"single_host_origin"}
fields="name,email"
onResolve={GoogleAuth}
onReject={err => {
console.log(err);
}}
>
<li><a><img src={SOCIAL_ICON.Login_Icon.google} /></a></li>
</LoginSocialGoogle>
have you tried to remove cookiePolicy and fields prop?
Why im getting this instead of user information? @cuongdevjs
@quan
Why im getting this instead of user information? @cuongdevjs
Hi try this. it's work for me
<LoginSocialGoogle
client_id={process.env.REACT_APP_GOOGLE_CLIENT_ID || ""}
typeResponse="idToken"
scope="openid profile email"
ux_mode="popup"
onResolve={({ provider, data }) => {
GoogleAuth({ provider, data });
}}
onReject={err => {
console.log(err);
}}
/>
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.