Skip to content

Built for people who want to own their automations. Join the waitlist for an invite.

Package listing

@kody/linkedin

src/get-user-info.ts

12 lines · 369 B · TypeScript
import { getUserInfo } from './client.ts'

/**
 * Return the current LinkedIn member OIDC userinfo from `/v2/userinfo`.
 * @example
 * import getUserInfo from 'kody:@kody/linkedin/get-user-info'
 * const result = await getUserInfo()
 * // => { sub: '...', name: '...', email: '...' }
 */
export default async function getUserInfoEntrypoint() {
  return getUserInfo()
}