Skip to content

Commit

Permalink
fix android sample
Browse files Browse the repository at this point in the history
  • Loading branch information
MohamadJaara committed Jan 25, 2024
1 parent 50e9134 commit 5b19df2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class MainActivity : ComponentActivity() {
}

private suspend fun provideAuthScope(coreLogic: CoreLogic, backendLinks: ServerConfig.Links): AuthenticationScope =
when (val result = coreLogic.versionedAuthenticationScope(backendLinks).invoke()) {
when (val result = coreLogic.versionedAuthenticationScope(backendLinks).invoke(null)) {
is AutoVersionAuthScopeUseCase.Result.Failure.Generic -> error("Generic failure")
AutoVersionAuthScopeUseCase.Result.Failure.TooNewVersion -> error("Too new version")
AutoVersionAuthScopeUseCase.Result.Failure.UnknownServerVersion -> error("Unknown server version")
Expand Down

0 comments on commit 5b19df2

Please sign in to comment.