Lines Matching refs:tokens
11 static description = 'Manage your authentication tokens'
54 const tokens = await pulseTillDone.withPromise(profile.listTokens(conf))
56 this.npm.output(JSON.stringify(tokens, null, 2))
60 tokens.forEach(token => {
73 this.generateTokenIds(tokens, 6)
74 const idWidth = tokens.reduce((acc, token) => Math.max(acc, token.id.length), 0)
79 tokens.forEach(token => {
98 const progress = log.newItem('removing tokens', toRemove.length)
100 const tokens = await pulseTillDone.withPromise(profile.listTokens(conf))
102 const matches = tokens.filter(token => token.key.indexOf(id) === 0)
111 const tokenMatches = tokens.some(t => id.indexOf(t.token) === 0)
193 generateTokenIds (tokens, minLength) {
195 for (const token of tokens) {
198 const match = tokens.some(