Token of one connection, or null once it is removed or expired.
(id)
| 294 | |
| 295 | /** Token of one connection, or null once it is removed or expired. */ |
| 296 | getToken(id) { |
| 297 | const connection = find(id); |
| 298 | if (!connection || isExpired(connection)) return null; |
| 299 | return decrypt(connection); |
| 300 | }, |
| 301 | |
| 302 | /** |
| 303 | * Save a credential and make it active. Entering a token this store |