Hey guys I have a next's project tied with supabase. And as auth system I use LinkedIn.
const { data, error } = await supabase.auth.signInWithOAuth({
provider,
options: {
redirectTo: `${window.location.origin}/auth/callback`,
scopes: "openid,profile,w_member_social,email"
},
});
I want allow users to sign in with their Linkedin account and export contacts. After susses auth I have tokens and send request like
const linkedinResponse = await fetch("https://api.linkedin.com/v2/contactExporterTasks", {
method: "POST",
headers: {
"Authorization": `Bearer ${linkedinToken}`,
"Content-Type": "application/json",
"X-Restli-Protocol-Version": "2.0.0",
},
});
But as response I see an error
LinkedIn API error: {"status":403,"serviceErrorCode":100,"code":"ACCESS_DENIED","message":"Not enough permissions to access: contactExporterTasks.CREATE.NO_VERSION"}
So question is what type of permissions I should ask users or in the app? My app on linked in is verified, I requested all access to all apis I could. SO I kinda staked.