-
Notifications
You must be signed in to change notification settings - Fork 48
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
after login its not calling onSuccess function #62
Comments
I'm also having this problem in the latest version, I already allow linkedin login but it didn't call onSuccess function so it returns nothing. Please somebody help |
Hello, I'm having a similar issue. But it's only happening on localhost, when i deploy my app to some server this error happens. It executes Is there a way to fix this? |
i think this package have some serious issue |
Hi @zafarhussain633, @tleopardt, @devnexitus, Thank you for reaching us. Did you setup import React from 'react';
import { LinkedInCallback } from 'react-linkedin-login-oauth2';
import { BrowserRouter, Route, Switch } from 'react-router-dom';
function Demo() {
return (
<BrowserRouter>
<Route exact path="/linkedin" component={LinkedInCallback} />
</BrowserRouter>
);
} // pages/linkedin.js
import { LinkedInCallback } from 'react-linkedin-login-oauth2';
export default function LinkedInPage() {
return <LinkedInCallback />;
} If you follow the Usage and still experience any issues. Please help to create a minimal reproduction so we can support you. Thanks. |
Facing same issue, any luck finding the solution? |
Hello! I have solved this problem by making the modal by myself. I used local storage to communicate between parent and child window as childWindow.opener is null if origin is different. const width = 500; let url = new URL("https://www.linkedin.com/oauth/v2/authorization") const popup = window.open(url, 'LinkedIn Login', params); const handleInvalidToken = e => { Make new route component yourself and add it to your route... import { useEffect } from "react"; export default function LinkedinCallback(props) { useEffect(() => { return <></> Thank you. |
No description provided.
The text was updated successfully, but these errors were encountered: