AuthSession

open class AuthSession(val authentication: SteamAuthentication, val authenticator: IAuthenticator?, var clientId: Long, val requestId: ByteArray, var allowedConfirmations: List<AllowedConfirmations>, val pollingInterval: Float)

Represents an authentication session which can be used to finish the authentication and get access tokens.

Parameters

authentication

Unified messages class for Authentication related messages, see Authentication.

authenticator

Authenticator object which will be used to handle 2-factor authentication if necessary.

clientId

Unique identifier of requestor, also used for routing, portion of QR code.

requestId

Unique request ID to be presented by requestor at poll time.

allowedConfirmations

Confirmation types that will be able to confirm the request.

pollingInterval

Refresh interval with which requestor should call PollAuthSessionStatus.

Inheritors

Constructors

Link copied to clipboard
constructor(authentication: SteamAuthentication, authenticator: IAuthenticator?, clientId: Long, requestId: ByteArray, allowedConfirmations: List<AllowedConfirmations>, pollingInterval: Float)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val scope: CoroutineScope

Functions

Link copied to clipboard

Polls for authentication status once. Prefer using pollingWaitForResult instead.

Link copied to clipboard

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

Link copied to clipboard

Blocking, compat function for Java mostly: Handle any 2-factor authentication, and if necessary poll for updates until authentication succeeds.