FakeAuthorizationProvider

constructor(initialToken: String? = "token", refreshedToken: String? = "refreshed-token", refreshSucceeds: Boolean = true)

Parameters

initialToken

the token returned before any refresh, or null for no authorization.

refreshedToken

the token to switch to on a successful refresh.

refreshSucceeds

whether refreshAuthorizationIfNeeded reports success.