create
suspend fun create(url: String, username: String, password: String, tokenExpirationInterval: Int? = null): Result<TokenCredential>
Creates a TokenCredential to access a secured ArcGIS resource.
Return
Returns a TokenCredential.
Since
200.1.0
Parameters
url
The URL of the token-secured resource.
username
The username used to access the secured resource or retrieve a token.
password
The password used to access the secured resource or retrieve a token.
token Expiration Interval
The duration the token will remain valid, represented in minutes. The value must be greater than 0, otherwise the server default is used.