core / com.schibsted.account.network.service.session / SessionService

SessionService

class SessionService : BaseNetworkService

Constructors

<init>

SessionService(environment: String, okHttpClient: OkHttpClient)

Functions

oneTimeCode

fun oneTimeCode(clientId: String, accessToken: TokenResponse): Call<TokenExchangeResponse>

Requests a one-time code with 30 seconds validity.

oneTimeSessionCode

fun oneTimeSessionCode(clientId: String, accessToken: TokenResponse, redirectUri: String): Call<TokenExchangeResponse>

Requests a one-time session code with 60 seconds validity.

Inherited Functions

createService

open fun <T : Any!> createService(service: Class<T>): T

Creates a service to perform network interactions against.