Skip to content

Commit

Permalink
fix cli
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadJaara committed Jan 25, 2024
1 parent d77e4e8 commit 50e9134
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ class LoginCommand : CliktCommand(name = "login") {
}

private suspend fun provideVersionedAuthenticationScope(serverLinks: ServerConfig.Links): AuthenticationScope =
when (val result = coreLogic.versionedAuthenticationScope(serverLinks).invoke()) {
// CLI does not support proxy mode so we can pass null here
when (val result = coreLogic.versionedAuthenticationScope(serverLinks).invoke(null)) {
is AutoVersionAuthScopeUseCase.Result.Failure.Generic ->
throw PrintMessage("failed to create authentication scope: ${result.genericFailure}")

Expand Down

0 comments on commit 50e9134

Please sign in to comment.