CLASS
OAuthLifecycle
Contents
- Methods
refreshToken(refreshToken:haapiUIKitApplication:lifecycleResultListener:)
public class OAuthLifecycle
Oauth Lifecycle Management helper object.
The recommended way to request the framework to refresh an AccessToken is to use OAuthLifecycle.
OAuthLifecycle.refreshToken(
refreshToken: "your-current-refresh-token",
haapiUIKitApplication: haapiUIKitApplication,
lifecycleResultListener: oAuthLifecycleResultListenerImplementation
)
Methods
refreshToken(refreshToken:haapiUIKitApplication:lifecycleResultListener:)
public static func refreshToken(refreshToken: String,
haapiUIKitApplication: HaapiUIKitApplication,
lifecycleResultListener: OAuthLifecycleResultListener)
Issues a refresh request for the currently held AccessToken.
-
Parameters:
- refreshToken: The refreshToken.
- haapiUIKitApplication: An
HaapiUIKitApplicationinstance. - lifecycleResultListener: An
OAuthLifecycleResultinstance to handle the result.
-
Note: Request and response processing execute in the background and the result is delivered in the main thread.
Parameters
| Name | Description |
|---|---|
| refreshToken | The refreshToken. |
| haapiUIKitApplication | An HaapiUIKitApplication instance. |
| lifecycleResultListener | An OAuthLifecycleResult instance to handle the result. |