We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c6e9d9 commit 47901b6Copy full SHA for 47901b6
1 file changed
auth/downscoping.js
@@ -115,24 +115,7 @@ const downscopingWithCredentialAccessBoundary = async ({
115
116
const storageOptions = {
117
projectId: process.env.GOOGLE_CLOUD_PROJECT,
118
- authClient: {
119
- sign: () => {
120
- Promise.reject('unsupported');
121
- },
122
- getCredentials: async () => {
123
- Promise.reject();
124
125
- request: opts => {
126
- return oauth2Client.request(opts);
127
128
- authorizeRequest: async opts => {
129
- opts = opts || {};
130
- const url = opts.url || opts.uri;
131
- const headers = await oauth2Client.getRequestHeaders(url);
132
- opts.headers = Object.assign(opts.headers || {}, headers);
133
- return opts;
134
135
+ authClient: oauth2Client,
136
};
137
138
const storage = new Storage(storageOptions);
0 commit comments