QrAuthSession

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

QR code based authentication session.

Constructors

Link copied to clipboard
constructor(authentication: SteamAuthentication, authenticator: IAuthenticator?, response: SteammessagesAuthSteamclient.CAuthentication_BeginAuthSessionViaQR_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

URL based on client ID, which can be rendered as QR code.

Link copied to clipboard

Called whenever the challenge url is refreshed by Steam.

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.