Updated on 2026-08-14
This commit is contained in:
parent
9f46037b4c
commit
b44da0a4c0
3 changed files with 3 additions and 5 deletions
|
|
@ -99,7 +99,7 @@ internal class ConfigManagerImpl @Inject constructor() : ConfigManager {
|
|||
),
|
||||
infuraProjectId = configValues.infuraProjectId,
|
||||
tronGridApiKey = configValues.tronGridApiKey,
|
||||
saltPayAuthToken = configValues.saltPay.credentials.token,
|
||||
saltPayAuthToken = configValues.saltPay.credentials.basicAuthToken,
|
||||
nowNodeCredentials = NowNodeCredentials(configValues.nowNodesApiKey),
|
||||
getBlockCredentials = GetBlockCredentials(configValues.getBlockApiKey),
|
||||
),
|
||||
|
|
|
|||
|
|
@ -1,7 +1,5 @@
|
|||
package com.tangem.datasource.config.models
|
||||
|
||||
import org.spongycastle.util.encoders.Base64.toBase64String
|
||||
|
||||
/**
|
||||
[REDACTED_AUTHOR]
|
||||
*/
|
||||
|
|
@ -34,5 +32,5 @@ data class Credentials(
|
|||
val user: String,
|
||||
val password: String,
|
||||
) {
|
||||
val token: String by lazy { "Basic ${toBase64String("$user:$password".toByteArray())}" }
|
||||
val basicAuthToken: String by lazy { okhttp3.Credentials.basic(user, password) }
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue