(name, id)
| 179 | }, |
| 180 | |
| 181 | async getToken(name, id) { |
| 182 | const handle = await binding.get(scopedName(sessionId, name)); |
| 183 | const { tokens } = await handle.listTokens(); |
| 184 | const found = tokens.find((t) => t.id === id); |
| 185 | if (!found) { |
| 186 | throw new NotFoundError(`no such token '${id}' in repo '${name}'`); |
| 187 | } |
| 188 | return found; |
| 189 | }, |
| 190 | |
| 191 | async revokeToken(name, tokenOrId) { |
| 192 | const handle = await binding.get(scopedName(sessionId, name)); |
nothing calls this directly
no test coverage detected