You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am using two separate button to connect LinkedIn but as i am clicking on one the linkedin callback trigger in both the component onSucess function. I want to restrict the one based on the state but i cant able to get access to it.
Screenshots
The text was updated successfully, but these errors were encountered:
From where i should get the access to the state i pass
const { linkedInLogin } = useLinkedIn({
clientId: clientId,
redirectUri:
${ typeof window === "object" && window.location.origin }/linkedin
,scope: scopes,
state: "linkedin_page",
onSuccess: (code) => {
console.log(code);
// getLinkedInPages(code);
},
onError: (error) => {
console.log(error);
},
});
Describe the bug
I am using two separate button to connect LinkedIn but as i am clicking on one the linkedin callback trigger in both the component onSucess function. I want to restrict the one based on the state but i cant able to get access to it.
Screenshots
The text was updated successfully, but these errors were encountered: