Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Use string as scope #287

Merged
merged 1 commit into from
Jan 24, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/services/AdminApiContext.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ export class AdminApiContext {
grant_type: 'client_credentials',
client_id: options.client_id,
client_secret: options.client_secret,
scope: ['write'],
scope: 'write',
},
});

Expand All @@ -109,7 +109,7 @@ export class AdminApiContext {
grant_type: 'password',
username: options.admin_username,
password: options.admin_password,
scope: ['write'],
scope: 'write',
},
});

Expand Down Expand Up @@ -150,4 +150,4 @@ export class AdminApiContext {
async head<PAYLOAD>(url: string, options?: RequestOptions<PAYLOAD>): Promise<APIResponse> {
return this.context.head(url, options);
}
}
}
Loading