PROTOCOL

TokenEndpointResponseListener

@objc public protocol TokenEndpointResponseListener: AnyObject

The listener that is notified when receiving a response from the token endpoint.

Methods

onSuccess(_:)

func onSuccess(_ value: SuccessTokenHTTPURLResponseContent)

Called when the response is considered as a success.

onError(_:)

func onError(_ value: ErrorHTTPURLResponseContent)

Called when the response is considered as a failure and holds an Error.

onTokenError(_:)

func onTokenError(_ value: ErrorTokenHTTPURLResponseContent)

Called when the response is considered as a failure and holds an ErrorTokenHTTPURLResponseContent.