Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

linkedin-api-client

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

linkedin-api-client

Official JavaScript client library for LinkedIn APIs

  • 0.3.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
2.3K
increased by10.09%
Maintainers
1
Weekly downloads
 
Created
Source

Overview

This library provides a thin JavaScript client for making requests to LinkedIn APIs, utilizing the Axios HTTP client library and written in TypeScript. LinkedIn's APIs are built on the Rest.li framework with additional LinkedIn-specific constraints, which results in a robust yet complex protocol that can be challenging to implement correctly.

This library helps reduce this complexity by formatting requests correctly, providing proper request headers, and providing interfaces to develop against for responses. The library also provides an auth client for inspecting, generating, and refreshing access tokens, along with other helpful utilities.

This library is intended for use within a Node.js server application. API requests from browser environments are not supported by LinkedIn APIs due to the CORS policy.

:warning: This API client library is currently in beta and is subject to change. It may contain bugs, errors, or other issues that we are working to resolve. Use of this library is at your own risk. Please use caution when using it in production environments and be prepared for the possibility of unexpected behavior. We welcome any feedback or reports of issues that you may encounter while using this library.

Features

  • Generic support for all Rest.li methods used in LinkedIn APIs
  • Supports Rest.li protocol version 2.0.0
  • Provide typescript interfaces for request options/response payloads
  • Built-in parameter encoding
  • Partial update patch generation utilities
  • LinkedIn URN utilities
  • Supports versioned APIs
  • Automatic query tunneling of requests
  • 2-legged and 3-legged OAuth2 support

Table of Contents

Installation

Using npm:

npm install linkedin-api-client

Using yarn:

yarn add linkedin-api-client

Getting Started

Pre-requisites

  1. Create or use an existing developer application from the LinkedIn Developer Portal
  2. Request access to the Sign In With LinkedIn API product. This is a self-serve product that will be provisioned immediately to your application.
  3. Generate a 3-legged access token using the Developer Portal token generator tool, selecting the r_liteprofile scope.

Simple API Request Example

Here is an example of using the client to make a simple GET request to fetch the current user's profile. This requires a 3-legged access token with the "r_liteprofile" scope, which is included with the Sign In With LinkedIn API product.

const { RestliClient } = require('linkedin-api-client');

const restliClient = new RestliClient();

restliClient.get({
  resourcePath: '/me',
  accessToken: <THREE_LEGGED_ACCESS_TOKEN>
}).then(response => {
  const profile = response.data;
});

Finder Request Example

Here is a more non-trivial example to find ad accounts by some search critiera. This requires a 3-legged access token with the "r_ads" scope, which is included with the Marketing Developer Platform API product.

We provide the value of the "search" query parameter object, and the client will handle the correct URL-encoding. This is a versioned API call, so we provide the version string in the "YYYYMM" format.

const { RestliClient } = require('linkedin-api-client');

const restliClient = new RestliClient();

restliClient.finder({
  resourcePath: '/adAccounts',
  finderName: 'search',
  queryParams: {
    search: {
      status: {
        values: ['ACTIVE', 'DRAFT']
      },
      reference: {
        values: ['urn:li:organization:123']
      },
      test: true
    }
  },
  versionString: '202212',
  accessToken: <THREE_LEGGED_ACCESS_TOKEN>
}).then(response => {
  const adAccounts = response.data.elements;
  const total = response.data.paging.total;
});

More Examples

There are more examples of using the client in /examples directory.

API Client

The API client defines instance methods for all the Rest.li methods which are used by LinkedIn APIs. Rest.li defines a standard set of methods that can operate on a resource, each of which maps to an HTTP method. Depending on the resource, some Rest.li methods are not applicable or not implemented. Read the API docs to determine what Rest.li method is applicable and the applicable request parameters.

Constructor

An instance of the API client must be created before using.

const { RestliClient } = require('linkedin-api-client');

const restliClient = new RestliClient(config);
ParameterTypeRequired?Description
configObject : AxiosRequestConfigNoAn initial, optional config that used to configure the axios instance (e.g. default timeout).

Properties

PropertyDescription
axiosInstanceThe axios instance used for making http requests. This is exposed to allow for additional configuration (e.g. adding custom request/response interceptors).

Methods

Base Request Options

All methods of the API client require passing in a request options object, all of which extend the following BaseRequestOptions object:

ParameterTypeRequired?Description
BaseRequestOptions.resourcePathStringYes

The resource path after the base URL, beginning with a forward slash. If the path contains keys, add curly-brace placeholders for the keys and specify the path key-value map in the pathKeys argument.

Examples:

  • resourcePath: "/me"
  • resourcePath: "/adAccounts/{id}"
  • resourcePath: "/socialActions/{actionUrn}/comments/{commentId}"
  • resourcePath: "/campaignConversions/{key}
BaseRequestOptions.pathKeysObjectNo

If there are path keys that are part of the resourcePath argument, the key placeholders must be specified in the provided pathKeys map. The path key values can be strings, numbers, or objects, and these will be properly encoded.

Examples:

  • pathKeys: {"id": 123"}
  • pathKeys: {"actionUrn":"urn:li:share:123","commentId":987}
  • pathKeys: {"key": {"campaign": "urn:li:sponsoredCampaign:123", "conversion": "urn:lla:llaPartnerConversion:456"}}
BaseRequestOptions.queryParamsObjectNoA map of query parameters. The parameter keys and values will be correctly encoded by this method, so these should not be encoded.
BaseRequestOptions.accessTokenStringYesThe access token that should provide the application access to the specified API
BaseRequestOptions.versionStringStringNoAn optional version string of the format "YYYYMM" or "YYYYMM.RR". If specified, the version header will be passed and the request will use the versioned APIs base URL
BaseRequestOptions.additionalConfigObject : AxiosRequestConfigNoAn optional Axios request config object that will be merged into the request config. This will override any properties the client method sets and any properties passed in during the RestliClient instantiation, which may cause unexpected errors. Query params should not be passed here--instead they should be set in the queryParams proeprty for proper Rest.li encoding.
Base Response Object

All methods of the API client return a Promise that resolves to a response object that extends AxiosResponse. This client provides more detailed interfaces of the specific response data payload that is useful for static type-checking and IDE auto-completion.

get(params)

Makes a Rest.li GET request to fetch the specified entity on a resource. This method will perform query tunneling if necessary.

Request Parameters:

ParameterTypeRequired?Description
paramsObject extends BaseRequestOptionsYesStandard request options

Resolved Response Object:

FieldTypeDescription
responseObject extends AxiosResponseAxios response object
response.dataObjectThe Rest.li entity

Example:

restliClient.get({
  resourcePath: '/adAccounts/{id}',
  pathKeys: {
    id: 123
  },
  queryParams: {
    fields: 'id,name'
  },
  accessToken: MY_ACCESS_TOKEN,
  versionString: '202210'
}).then(response => {
  const entity = response.data;
});
batchGet(params)

Makes a Rest.li BATCH_GET request to fetch multiple entities on a resource. This method will perform query tunneling if necessary.

Request Parameters:

ParameterTypeRequired?Description
paramsObject extends BaseRequestOptionsYesStandard request options
params.idsString[] || Number[] || Object[]YesThe list of ids to fetch on the resource.

Resolved Response Object:

FieldTypeDescription
responseObject extends AxiosResponseAxios response object
response.data.resultsObjectA map of entities that were successfully retrieved, with the key being the encoded entity id, and the value being the entity.
response.data.errorsObjectA map containing entities that could not be successfully fetched, with the key being the encoded entity id, and the value being the error response.
response.data.statusesObjectA map of entities and status code, with the key being the encoded entity id, and the value being the status code number value.

Example:

restliClient.batchGet({
  resourcePath: '/adCampaignGroups',
  id: [123, 456, 789],
  accessToken: MY_ACCESS_TOKEN,
  versionString: '202210'
}).then(response => {
  const entity = response.data.results;
});
getAll(params)

Makes a Rest.li GET_ALL request to fetch all entities on a resource.

Request Parameters:

ParameterTypeRequired?Description
paramsObject extends BaseRequestOptionsYesStandard request options

Resolved Response Object:

FieldTypeDescription
responseObject extends AxiosResponseAxios response object
response.data.elementsObject[]The list of Rest.li entities
response.data.pagingObjectPaging metadata object

Example:

restliClient.getAll({
  resourcePath: '/fieldsOfStudy',
  queryParams: {
    start: 0,
    count: 15
  },
  accessToken: MY_ACCESS_TOKEN,
  versionString: '202210'
}).then(response => {
  const elements = response.data.elements;
  const total = response.data.paging.total;
});
finder(params)

Makes a Rest.li FINDER request to find entities by some specified criteria.

Request Parameters:

ParameterTypeRequired?Description
paramsObject extends BaseRequestOptionsYesStandard request options
params.finderNameStringYesThe Rest.li finder name. This will be included in the request query parameters.

Resolved Response Object:

FieldTypeDescription
responseObject extends AxiosResponseAxios response object
response.data.elementsObject[]The list of entities found based on the search criteria.
response.data.pagingObjectPaging metadata object

Example:

restliClient.finder({
  resourcePath: '/adAccounts',
  finderName: 'search'
  queryParams: {
    search: {
      status: {
        values: ['DRAFT', 'ACTIVE', 'REMOVED']
      },
      reference: {
        values: ['urn:li:organization:123']
      },
      test: false
    }
  },
  accessToken: MY_ACCESS_TOKEN,
  versionString: '202210'
}).then(response => {
  const elements = response.data.elements;
  const total = response.data.paging.total;
});
batchFinder(params)

Makes a Rest.li BATCH_FINDER request to find entities by multiple sets of criteria.

Request Parameters:

ParameterTypeRequired?Description
paramsObject extends BaseRequestOptionsYesStandard request options
params.finderNameStringYesThe Rest.li batch finder name. This will be included in the request query parameters.
params.finderCriteriaObjectYesAn object with name and value properties, representing the required batch finder criteria information. name should be the batch finder criteria parameter name, and value should be a list of finder param objects. The batch finder results are correspondingly ordered according to this list. The batch finder criteria will be encoded and added to the request query parameters.

Resolved Response Object:

FieldTypeDescription
responseObject extends AxiosResponseAxios response object
response.data.elementsObject[]An array of finder search results in the same order as the array of search criteria provided to the batch finder.
response.data.elements[].elementsObject[]An array of entities found based on the corresponding search criteria.
response.data.elements[].pagingObjectPaging metadata object
response.data.elements[].metadataObjectOptional finder results metadata object
response.data.elements[].errorObjectError response object if this finder request encountered an error.
response.data.elements[].isErrorbooleanFlag indicating whether the finder request encountered an error.

Example:

restliClient.batchFinder({
  resource: '/organizationAuthorizations',
  finderName: 'authorizationActionsAndImpersonator'
  finderCriteria: {
    name: 'authorizationActions',
    value: [
      {
        'OrganizationRoleAuthorizationAction': {
          actionType: 'ADMINISTRATOR_READ'
        }
      },
      {
        'OrganizationContentAuthorizationAction': {
          actionType: 'ORGANIC_SHARE_DELETE'
        }
      }
    ]
  },
  accessToken: MY_ACCESS_TOKEN,
  versionString: '202210'
}).then(response => {
  const allFinderResults = response.data.elements;
});
create(params)

Makes a Rest.li CREATE request to create a new entity on the resource.

Request Parameters:

ParameterTypeRequired?Description
paramsObject extends BaseRequestOptionsYesStandard request options
params.entityObjectYesThe value of the entity to create

Resolved Response Object:

FieldTypeDescription
responseObject extends AxiosResponseAxios response object
response.createdEntityIdString || NumberThe id of the created entity

Example:

restliClient.create({
  resourcePath: '/adAccountsV2',
  entity: {
    name: 'Test Ad Account',
    type: 'BUSINESS',
    test: true
  },
  accessToken: MY_ACCESS_TOKEN
}).then(response => {
  const createdEntityId = response.createdEntityId;
});
batchCreate(params)

Makes a Rest.li BATCH_CREATE request to create multiple entities in a single call.

Request Parameters:

ParameterTypeRequired?Description
paramsObject extends BaseRequestOptionsYesStandard request options
params.entitiesObject[]YesThe values of the entities to create

Resolved Response Object:

FieldTypeDescription
responseObject extends AxiosResponseAxios response object
response.data.elementsObject[]A list of entity creation response data in the same order as the entities provided in the batch create request.
response.data.elements[].statusNumberThe response status when creating the entity.
response.data.elements[].idString || NumberThe encoded id of the newly-created entity, if creation was successful.
response.data.elements[].errorObjectThe error object details when creating an entity, if creation failed.

Example:

restliClient.batchCreate({
  resourcePath: '/adCampaignGroups',
  entities: [
    {
      account: 'urn:li:sponsoredAccount:111',
      name: 'CampaignGroupTest1',
      status: 'DRAFT'
    },
    {
      account: 'urn:li:sponsoredAccount:222',
      name: 'CampaignGroupTest2',
      status: 'DRAFT'
    }
  ],
  versionString: '202209',
  accessToken: MY_ACCESS_TOKEN
}).then(response => {
  const createdElementsInfo = response.data.elements;
});
update(params)

Makes a Rest.li UPDATE request to update an entity (overwriting the entire entity).

Request Parameters:

ParameterTypeRequired?Description
paramsObject extends BaseRequestOptionsYesStandard request options
params.entityObjectYesThe value of the entity with updated values.

Resolved Response Object:

FieldTypeDescription
responseObject extends AxiosResponseAxios response object

Example:

restliClient.update({
  resourcePath: '/adAccountUsers/{key}',
  pathKeys: {
    key: {
      account: 'urn:li:sponsoredAccount:123',
      user: 'urn:li:person:foobar'
    }
  },
  entity: {
    account: 'urn:li:sponsoredAccount:123',
    user: 'urn:li:person:foobar',
    role: 'VIEWER'
  },
  versionString: '202210',
  accessToken: MY_ACCESS_TOKEN
}).then(response => {
  const status = response.status;
});
batchUpdate(params)

Makes a Rest.li BATCH_UPDATE request to update multiple entities in a single call.

Request Parameters:

ParameterTypeRequired?Description
paramsObject extends BaseRequestOptionsYesStandard request options
params.idsString[] || Number[] || Object[]YesThe list of entity ids to update
params.entitiesObject[]YesThe list of values of entities with updated values.

Resolved Response Object:

FieldTypeDescription
responseObject extends AxiosResponseAxios response object

Example:

restliClient.batchUpdate({
  resourcePath: '/campaignConversions',
  ids: [
    { campaign: 'urn:li:sponsoredCampaign:123', conversion: 'urn:lla:llaPartnerConversion:456' },
    { campaign: 'urn:li:sponsoredCampaign:123', conversion: 'urn:lla:llaPartnerConversion:789' }
  ],
  entities: [
    { campaign: 'urn:li:sponsoredCampaign:123', conversion: 'urn:lla:llaPartnerConversion:456' },
    { campaign: 'urn:li:sponsoredCampaign:123', conversion: 'urn:lla:llaPartnerConversion:789' }
  ]
  accessToken: MY_ACCESS_TOKEN
}).then(response => {
  const results = response.data.results;
});
partialUpdate(params)

Makes a Rest.li PARTIAL_UPDATE request to update part of an entity. One can either directly pass the patch object to send in the request, or one can pass the full original and modified entity objects, with the method computing the correct patch object.

When an entity has nested fields that can be modified, passing in the original and modified entities may produce a complex patch object that is a technically correct format for the Rest.li framework, but may not be supported for most LinkedIn APIs which mainly support partial update of only top-level fields on an entity. In these cases it is better to specify patchSetObject directly.

Request Parameters:

ParameterTypeRequired?Description
paramsObject extends BaseRequestOptionsYesStandard request options
params.patchSetObjectObjectNoThe value of the entity with only the modified fields present. If specified, this will be directly sent as the patch object.
params.originalEntityObjectNoThe value of the original entity. If specified and patchSetObject is not provided, this will be used in conjunction with modifiedEntity to compute the patch object.
params.modifiedEntityObjectNoThe value of the modified entity. If specified and patchSetObject is not provided, this will be used in conjunction with originalEntity to compute the patch object.

Resolved Response Object:

FieldTypeDescription
responseObject extends AxiosResponseAxios response object

Example:

restliClient.partialUpdate({
  resourcePath: '/adAccounts/{id}',
  pathKeys: {
    id: 123
  },
  patchSetObject: {
    name: 'TestAdAccountModified',
    reference: 'urn:li:organization:456'
  },
  versionString: '202210',
  accessToken: MY_ACCESS_TOKEN
}).then(response => {
  const status = response.status;
});
batchPartialUpdate(params)

Makes a Rest.li BATCH_PARTIAL_UPDATE request to partially update multiple entites at once.

Request Parameters:

ParameterTypeRequired?Description
paramsObject extends BaseRequestOptionsYesStandard request options
params.idsString[] || Number[] || Object[]YesThe list of entity ids to update
params.patchSetObjectsObject[]NoThe list of values of the entities with only the modified fields present. If specified, this will be directly sent as the patch object
params.originalEntitiesObject[]NoThe list of values of the original entities. If specified and patchSetObjects is not provided, this will be used in conjunction with modifiedEntities to compute patch object for each entity.
params.modifiedEntitiesObject[]NoThe list of values of the modified entities. If specified and patchSetObjects is not provided, this will be used in conjunction with originalEntities to compute the patch object for each entity.

Resolved Response Object:

FieldTypeDescription
responseObject extends AxiosResponseAxios response object
response.data.resultsObjectA map where the key is the encoded entity id and the value is an object containing the corresponding response status.
response.data.errorsObjectA map where the keys are the encoded entity ids that failed to be updated, and the values include the error response.

Example:

restliClient.batchPartialUpdate({
  resourcePath: '/adCampaignGroups',
  id: [123, 456],
  patchSetObjects: [
    { status: 'ACTIVE' },
    {
      runSchedule: {
        start: 1678029270721,
        end: 1679029270721
      }
    }
  },
  versionString: '202210',
  accessToken: MY_ACCESS_TOKEN
}).then(response => {
  const results = response.data.results;
});
delete(params)

Makes a Rest.li DELETE request to delete an entity.

Request Parameters:

ParameterTypeRequired?Description
paramsObject extends BaseRequestOptionsYesStandard request options

Resolved Response Object:

FieldTypeDescription
responseObject extends AxiosResponseAxios response object

Example:

restliClient.delete({
  resourcePath: '/adAccounts/{id}',
  pathKeys: {
    id: 123
  },
  versionString: '202210',
  accessToken: MY_ACCESS_TOKEN
}).then(response => {
  const status = response.status;
});
batchDelete(params)

Makes a Rest.li BATCH_DELETE request to delete multiple entities at once.

Request Parameters:

ParameterTypeRequired?Description
paramsObject extends BaseRequestOptionsYesStandard request options
params.idsString[] || Number[] || Object[]YesThe ids of the entities to delete.

Resolved Response Object:

FieldTypeDescription
responseObject extends AxiosResponseAxios response object
response.data.resultsObjectA map where the keys are the encoded entity ids that were successfully deleted, and the values are the delete results, which include the status code.
response.data.errorsObjectA map where the keys are the encoded entity ids that failed to be deleted, and the values include the error response.

Example:

restliClient.batchDelete({
  resourcePath: '/adAccounts',
  ids: [123, 456],
  versionString: '202210',
  accessToken: MY_ACCESS_TOKEN
}).then(response => {
  const results = response.data.results;
});
action(params)

Makes a Rest.li ACTION request to perform an action on a specified resource.

Request Parameters:

ParameterTypeRequired?Description
paramsObject extends BaseRequestOptionsYesStandard request options
params.actionNameStringYesThe Rest.li action name
params.dataObjectNoThe request body data to pass to the action.

Resolved Response Object:

FieldTypeDescription
responseObject extends AxiosResponseAxios response object
response.data.valueString || Number || ObjectThe action response value.

Example:

restliClient.action({
  resourcePath: '/testResource',
  actionName: 'doSomething',
  accessToken: MY_ACCESS_TOKEN
}).then(response => {
  const result = response.data.value;
});
setDebugParams(params)

Configures debug logging for troubleshooting requests.

Request Parameters:

ParameterTypeRequired?Description
paramsObjectYesParameters object
params.enabledbooleanNoFlag whether to enable debug logging. By default this is false.
params.logSuccessResponsesbooleanNoFlag whether to log successful responses. By default this is false and only errors are logged.

Auth Client

While we recommend using any of several popular, open-source libraries for robustly managing OAuth 2.0 authentication, we provide a basic Auth Client as a convenience for testing APIs and getting started.

Constructor

const { AuthClient } = require('linkedin-api-client');

const authClient = new AuthClient(params);
ParameterTypeRequired?Description
paramsObjectYes
params.clientIdStringYesClient ID of your developer application. This can be found on your application auth settings page in the Developer Portal.
params.clientSecretStringYesClient secret of your developer application. This can be found on your application auth settings page in the Developer Portal.
params.redirectUrlStringNoIf your integration will be using the authorization code flow to obtain 3-legged access tokens, this should be provided. This redirect URL must match one of the redirect URLs configured in the app auth settings page in the Developer Portal.

Methods

generateMemberAuthorizationUrl(scopes, state)

Generates the member authorization URL to direct members to. Once redirected, the member will be presented with LinkedIn's OAuth consent page showing the OAuth scopes your application is requesting on behalf of the user.

Parameters:

ParameterTypeRequired?Description
scopesString[]YesAn array of OAuth scopes (3-legged member permissions) your application is requesting on behalf of the user.
stateStringNoAn optional string that can be provided to test against CSRF attacks.

Returns memberAuthorizationUrl

FieldTypeDescription
memberAuthorizationUrlStringThe member authorization URL
exchangeAuthCodeForAccessToken(code)

Exchanges an authorization code for a 3-legged access token. After member authorization, the browser redirects to the provided redirect URL, setting the authorization code on the code query parameter.

Parameters:

ParameterTypeRequired?Description
codeStringYesThe authorization code to exchange for an access token

Returns Promise<tokenDetails>

FieldTypeDescription
tokenDetailsObjectToken details object
tokenDetails.access_tokenStringThe 3-legged access token
tokenDetails.expires_inNumberThe TTL of the access token, in seconds
tokenDetails.refresh_tokenStringThe refresh token value. This is only present if refresh tokens are enabled for the application.
tokenDetails.refresh_token_expires_inNumberThe TTL of the refresh token, in seconds. This is only present if refresh tokens are enabled for the application.
tokenDetails.scopeStringA comma-separated list of scopes authorized by the member (e.g. "r_liteprofile,r_ads")
exchangeRefreshTokenForAccessToken(refreshToken)

Exchanges a refresh token for a new 3-legged access token. This allows access tokens to be refreshed without having the member reauthorize your application.

Parameters:

ParameterTypeRequired?Description
refreshTokenStringYesThe refresh token to exchange for an access token

Returns Promise<tokenDetails>

FieldTypeDescription
tokenDetailsObjectToken details object
tokenDetails.access_tokenStringThe 3-legged access token
tokenDetails.expires_inNumberThe TTL of the access token, in seconds
tokenDetails.refresh_tokenStringThe refresh token value
tokenDetails.refresh_token_expires_inNumberThe TTL of the refresh token, in seconds
getTwoLeggedAccessToken()

Use client credential flow (2-legged OAuth) to retrieve a 2-legged access token for accessing APIs that are not member-specific. Developer applications do not have the client credential flow enabled by default.

Returns Promise<tokenDetails>

FieldTypeDescription
tokenDetailsObjectToken details object
tokenDetails.access_tokenStringThe 2-legged access token
tokenDetails.expires_inNumberThe TTL of the access token, in seconds
introspectAccessToken(accessToken)

Introspect a 2-legged, 3-legged or Enterprise access token to get information on status, expiry, and other details.

Parameters:

ParameterTypeRequired?Description
accessTokenStringYesA 2-legged, 3-legged or Enterprise access token.

Returns Promise<tokenDetails>

FieldTypeDescription
tokenDetailsObjectToken introspection details object
tokenDetails.activeStringFlag whether the token is a valid, active token.
tokenDetails.auth_typeStringThe auth type of the token ("2L", "3L" or "Enterprise_User")
tokenDetails.authorized_atStringEpoch time in seconds, indicating when the token was authorized
tokenDetails.client_idNumberDeveloper application client ID
tokenDetails.created_atStringEpoch time in seconds, indicating when this token was originally issued
tokenDetails.expires_atNumberEpoch time in seconds, indicating when this token will expire
tokenDetails.scopeStringA string containing a comma-separated list of scopes associated with this token. This is only returned for 3-legged member tokens.
tokenDetails.statusStringThe token status, which is an enum string with values "revoked", "expired" or "active"

List of dependencies

The following table is a list of production dependencies.

Component NameLicenseLinkedModified
axiosMITStaticNo
lodashMITStaticNo
qsBSD-3-ClauseStaticNo

FAQs

Package last updated on 07 Feb 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc