CredentialsAuthSession

class CredentialsAuthSession @JvmOverloads constructor(val authentication: SteamAuthentication, val authenticator: IAuthenticator?, response: SteammessagesAuthSteamclient.CAuthentication_BeginAuthSessionViaCredentials_Response.Builder, val defaultScope: CoroutineScope = CoroutineScope(Dispatchers.IO + SupervisorJob())) : AuthSession

Credentials based authentication session.

Constructors

Link copied to clipboard
constructor(authentication: SteamAuthentication, authenticator: IAuthenticator?, response: SteammessagesAuthSteamclient.CAuthentication_BeginAuthSessionViaCredentials_Response.Builder, defaultScope: CoroutineScope = CoroutineScope(Dispatchers.IO + SupervisorJob()))

Properties

Link copied to clipboard
var allowedConfirmations: List<SteammessagesAuthSteamclient.CAuthentication_AllowedConfirmation>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val defaultScope: CoroutineScope
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun pollAuthSessionStatus(parentScope: CoroutineScope = defaultScope): CompletableFuture<AuthPollResult?>

Polls for authentication status once. Prefer using pollingWaitForResult instead.

Link copied to clipboard
fun pollingWaitForResult(parentScope: CoroutineScope = defaultScope): CompletableFuture<AuthPollResult>

Handle any 2-factor authentication, and if necessary poll for updates until authentication succeeds.

Link copied to clipboard
fun sendSteamGuardCode(code: String?, codeType: SteammessagesAuthSteamclient.EAuthSessionGuardType?, parentScope: CoroutineScope = defaultScope): CompletableFuture<Unit>

Send Steam Guard code for this authentication session.