Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface PersonalAccessToken

Hierarchy

Index

Properties

name

name: string

revokedAt

revokedAt: null | string

scopes

scopes: "content_management_manage"[]

sys

Optional token

token: undefined | string

Methods

revoke

  • Revokes a personal access token

    example
    const contentful = require('contentful-management')
    
    const client = contentful.createClient({
     accessToken: <content_management_api_key>
    })
    
    client.getPersonalAccessToken('<token-id>')
     .then((personalAccessToken) => {
       return personalAccessToken.revoke()
     })
     .catch(console.error)

    Returns Promise<PersonalAccessToken>

    Object the revoked personal access token

toPlainObject