(key: AuthKey)
| 212 | : new ServiceAccountKey({ token: auth.token }); |
| 213 | |
| 214 | const authFromKey = (key: AuthKey): ResolvedAuth => |
| 215 | key instanceof DesktopAuthKey |
| 216 | ? { kind: "desktop-app", accountName: key.accountName } |
| 217 | : { kind: "service-account", token: key.token }; |
| 218 | |
| 219 | /** One service per auth identity, memoized for the plugin instance's |
| 220 | * lifetime. Keying by the resolved auth keeps accounts isolated (a shared |
no outgoing calls
no test coverage detected