Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

You need to update your example code #130

Open
parkoon opened this issue Sep 6, 2023 · 6 comments
Open

You need to update your example code #130

parkoon opened this issue Sep 6, 2023 · 6 comments

Comments

@parkoon
Copy link

parkoon commented Sep 6, 2023

access_type=offline condition is added on 2.6.3
so, your google login example code is not working as expected.

I think, you need to delete offline option in your google login example.
thx.

@amin-da
Copy link

amin-da commented Sep 27, 2023

hi @cuongdevjs
In the demo version of this library at the address below
https://react-social-login.netlify.app/
google login send me CORS error and noting happening!
why?
google login is correct?

@cuongdevjs
Copy link
Owner

yes, cors sometimes happen when I try to get profile users, this process would be implemented on the server side instead. You won't see this if you only get the code or token and send it to the backend (use prop isOnlyGetToken or isOnlyGetCode)

@amin-da
Copy link

amin-da commented Sep 28, 2023

thanks for reply @cuongdevjs
one another question
This library is good for production? And there is no problem with next js 12.5 ?

@cuongdevjs
Copy link
Owner

thanks for reply @cuongdevjs one another question This library is good for production? And there is no problem with next js 12.5 ?

sure, I am using this library through multiple projects and it works well. the lib is absolutely compatible with the newest react version, but in NextJS, please use it with ssr = false, this library only works on the client side.

@Shams-02
Copy link

Shams-02 commented Oct 11, 2023

@cuongdevjs

image

Still Getting this error: Cross-Origin-Opener-Policy policy would block the window.closed call.

with this implementation:
<LoginSocialGoogle isOnlyGetToken client_id={""} onLoginStart={onLoginStart} onResolve={({ provider, data }: IResolveParams) => { setProvider(provider) setProfile(data) }} onReject={(err) => { console.log(err) }} > <GoogleLoginButton /> </LoginSocialGoogle>

@hassaan-glowfish
Copy link

having same issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants