(auth: ResolvedAuth)
| 207 | type AuthKey = DesktopAuthKey | ServiceAccountKey; |
| 208 | |
| 209 | const authKey = (auth: ResolvedAuth): AuthKey => |
| 210 | auth.kind === "desktop-app" |
| 211 | ? new DesktopAuthKey({ accountName: auth.accountName }) |
| 212 | : new ServiceAccountKey({ token: auth.token }); |
| 213 | |
| 214 | const authFromKey = (key: AuthKey): ResolvedAuth => |
| 215 | key instanceof DesktopAuthKey |
no outgoing calls
no test coverage detected