Update SDK to 1.0.0-3194-9947387b (#5938)

Co-authored-by: bw-ghapp[bot] <178206702+bw-ghapp[bot]@users.noreply.github.com>
Co-authored-by: Hinton <hinton@users.noreply.github.com>
Co-authored-by: Carlos Gonçalves <cgoncalves@bitwarden.com>
This commit is contained in:
bw-ghapp[bot]
2025-10-01 18:15:23 +01:00
committed by GitHub
parent 0469731fba
commit 874edfad69
3 changed files with 28 additions and 3 deletions

View File

@@ -1,12 +1,18 @@
package com.bitwarden.authenticator.data.platform.manager
import com.bitwarden.core.ClientManagedTokens
import com.bitwarden.sdk.Client
/**
* Primary implementation of [SdkClientManager].
*/
class SdkClientManagerImpl(
private val clientProvider: suspend () -> Client = { Client(null) },
private val clientProvider: suspend () -> Client = {
Client(
tokenProvider = Token(),
settings = null,
)
},
) : SdkClientManager {
private var client: Client? = null
@@ -15,4 +21,13 @@ class SdkClientManagerImpl(
override fun destroyClient() {
client = null
}
/**
* The token provider to pass to the SDK.
*/
private class Token : ClientManagedTokens {
override suspend fun getAccessToken(): String? {
return null
}
}
}