Skip to content
This repository has been archived by the owner on Feb 27, 2024. It is now read-only.

Commit

Permalink
Remove runBlocking to fix build.
Browse files Browse the repository at this point in the history
  • Loading branch information
nategbrown9 committed Apr 29, 2021
1 parent f7f671a commit cdd085a
Showing 1 changed file with 2 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,8 @@ package org.sagebionetworks.bridge.kmm.shared.repo

import io.ktor.client.*
import io.ktor.client.features.*
import io.ktor.http.*
import io.ktor.util.network.*
import kotlinx.coroutines.flow.Flow
import kotlinx.coroutines.flow.map
import kotlinx.coroutines.runBlocking
import kotlinx.datetime.Clock
import kotlinx.serialization.encodeToString
import kotlinx.serialization.json.Json
Expand Down Expand Up @@ -44,9 +41,9 @@ class AuthenticationRepository(httpClient: HttpClient, val bridgeConfig: BridgeC
return session()?.authenticated ?: false
}

fun signOut() {
suspend fun signOut() {
session()?.let {
runBlocking { authenticationApi.signOut(it) }
authenticationApi.signOut(it)
database.removeResource(USER_SESSION_ID)
}
}
Expand Down

0 comments on commit cdd085a

Please sign in to comment.