Skip to content

Commit

Permalink
fix(globe_cli): Auth required before token checked bug (#72)
Browse files Browse the repository at this point in the history
  • Loading branch information
kaziwaseef committed Mar 29, 2024
1 parent 75b6b74 commit d91b86c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/globe_cli/lib/src/commands/deploy_command.dart
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ class DeployCommand extends BaseGlobeCommand {

@override
Future<int> run() async {
requireAuth();

if (argResults?['token'] != null && argResults?['project'] != null) {
final token = argResults!['token'] as String;
final project = argResults!['project'] as String;
Expand All @@ -70,6 +68,8 @@ class DeployCommand extends BaseGlobeCommand {
}

scope.setScope(orgId: organizations.first.id, projectId: project);
} else {
requireAuth();
}

// If there is no scope, ask the user to link the project.
Expand Down

0 comments on commit d91b86c

Please sign in to comment.