B2BSessions

interface B2BSessions

Types

Link copied to clipboard
data class AuthParams(val sessionDurationMinutes: UInt? = null)

Data class used for wrapping parameters used with Sessions authentication

Functions

Link copied to clipboard
abstract suspend fun authenticate(authParams: B2BSessions.AuthParams): AuthResponse
abstract fun authenticate(authParams: B2BSessions.AuthParams, callback: (AuthResponse) -> Unit)

Wraps the sessions authenticate API endpoint which creates a session using the provided duration

Link copied to clipboard
abstract suspend fun revoke(): BaseResponse
abstract fun revoke(callback: (BaseResponse) -> Unit)

Wraps the sessions revoke API endpoint which revokes a session

Link copied to clipboard
abstract fun updateSession(sessionToken: String?, sessionJwt: String?)

Updates the current session with a sessionToken and/or sessionJwt

Properties

Link copied to clipboard
abstract val sessionJwt: String?
Link copied to clipboard
abstract val sessionToken: String?