AuthConfig

constructor(clientId: String, clientUniqueKey: String? = null, clientSecret: String? = null, credentialsKey: String, scopes: Set<String> = setOf(), tidalLoginServiceBaseUrl: String = DEFAULT_LOGIN_SERVICE_BASE_URL, tidalAuthServiceBaseUrl: String = DEFAULT_AUTH_SERVICE_BASE_URL, enableCertificatePinning: Boolean = true, logLevel: NetworkLogLevel = NetworkLogLevel.NONE)

Parameters

clientId

The client ID of the application.

clientUniqueKey

The unique key of the application.

clientSecret

The client secret of the application.

credentialsKey

The key used to encrypt and store store credentials on the device.

scopes

The scopes that the application requests.

tidalLoginServiceBaseUrl

The base URL of the TIDAL login service. Only pass in a value if you want to override the default value.

tidalAuthServiceBaseUrl

The base URL of the TIDAL auth service. Only pass in a value if you want to override the default value.

enableCertificatePinning

Whether certificate pinning is enabled.

logLevel

The NetworkLogLevel for the network layer. Default is NetworkLogLevel.NONE, which means no logging.