PROTOCOL

TokenEndpointResponseListener

swift
@objc public protocol TokenEndpointResponseListener: AnyObject

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

Methods

onSuccess(_:)

swift
func onSuccess(_ value: SuccessTokenHTTPURLResponseContent)

Called when the response is considered as a success.

onError(_:)

swift
func onError(_ value: ErrorHTTPURLResponseContent)

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

onTokenError(_:)

swift
func onTokenError(_ value: ErrorTokenHTTPURLResponseContent)

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