Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion src/commands/authCommand.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ export default abstract class AuthCommand extends Base {

public async setOrganization(): Promise<void> {
const { flags } = await this.parse(AuthCommand)
const organizations = await fetchOrganizations(this.authToken)
const organizations = await fetchOrganizations(this.personalAccessToken)
if (flags.headless && !flags.org) {
throw new Error('In headless mode, org flag is required')
}
Expand Down
2 changes: 1 addition & 1 deletion src/commands/organizations/select.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import AuthCommand from '../authCommand'
export default class SelectOrganization extends AuthCommand {
static description = 'Select which organization to access through the API'
static hidden = false
authRequired = true
userAuthRequired = true

public async run(): Promise<void> {
await this.setOrganizationAndProject()
Expand Down