(jwt: JWT)
| 90 | } |
| 91 | |
| 92 | async function getAccessToken(jwt: JWT): Promise<string> { |
| 93 | const { token } = await jwt.getAccessToken() |
| 94 | if (!token) throw new Error('Failed to obtain GCS access token') |
| 95 | return token |
| 96 | } |
| 97 | |
| 98 | interface UploadInput { |
| 99 | bucket: string |
no outgoing calls
no test coverage detected