(id)
| 217 | } |
| 218 | |
| 219 | function forgetToken(id) { |
| 220 | memoryTokens.delete(id); |
| 221 | if (!secrets) return; |
| 222 | try { |
| 223 | secrets.remove(secretAccountFor(id)); |
| 224 | } catch (error) { |
| 225 | log(error instanceof Error ? error.message : String(error)); |
| 226 | } |
| 227 | } |
| 228 | |
| 229 | function find(id) { |
| 230 | return state.connections.find((connection) => connection.id === id) ?? null; |
no test coverage detected