mirror of
https://github.com/bitwarden/android.git
synced 2026-04-28 20:08:27 -05:00
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:
@@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user