AuthInfo

data class AuthInfo @JvmOverloads constructor(val token: String? = null, val apiKey: String? = null)

Stores the credentials for authorization with the API Server.

Constructors

Link copied to clipboard
fun AuthInfo(token: String? = null, apiKey: String? = null)

Properties

Link copied to clipboard
val apiKey: String? = null

API Key passed to server as part of requests for model data. Preferred over token if both have been provided.

Link copied to clipboard
val token: String? = null

Access token passed to server as part of requests for model data. Used for request authorization if apiKey was not provided.