Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: linkedin announce api changes (#4428)
Closes #4421 I chose to keep `getProfileID` as `getProfileIDLegacy` and use it as a fallback if `getProfileSub` fails because of permission scope. In this way, it's not a breaking change because one that has only a deprecated permissions such as `r_liteprofile` will still be able to hit `v2/me` this logic is encapsulated in the new function `getProfileURN`, that resolves the user identifier and returns it formatted as a URN --------- Co-authored-by: Gabriel F Cipriano <gabriel.cipriano@farme.com.br>
- Loading branch information
1 parent
11e5682
commit 59a3eeb
Showing
2 changed files
with
109 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters