1

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.

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.