Returns a Contentful Management API token from private key
Management tokens are cached internally until until they expire.
Pass reuseToken: false in the options for getManagementToken to disable this feature.
NodeJS Contentful Apps need a management token to interact with Contentful's APIs.
Creating a management token requires a key pair to be registered for the app, follow
this link
for more information on key pairs.
Once a key pair is registered the getManagementToken function can be used to generate a valid token.
Returns a Contentful Management API token from private key Management tokens are cached internally until until they expire. Pass
reuseToken: false
in the options forgetManagementToken
to disable this feature.NodeJS Contentful Apps need a management token to interact with Contentful's APIs. Creating a management token requires a key pair to be registered for the app, follow this link for more information on key pairs.
Once a key pair is registered the getManagementToken function can be used to generate a valid token.