Skip to content
← Public packages

@kentcdodds/linkedin

Headless helpers for LinkedIn identity, requests, and guarded posting using the saved linkedin OAuth integration.

src/get-person-urn.ts

12 lines · 393 B · TypeScript
import { getPersonUrn } from './client.ts'

/**
 * Return the LinkedIn author `personUrn` and OIDC userinfo for posting.
 * @example
 * import getPersonUrn from 'kody:@kentcdodds/linkedin/get-person-urn'
 * const result = await getPersonUrn()
 * // => { personUrn: 'urn:li:person:...', userinfo: { ... } }
 */
export default async function getPersonUrnEntrypoint() {
  return getPersonUrn()
}