Instance Method

cancelWithError:

Indicates that the browser canceled the authentication attempt.

Declaration

- (void)cancelWithError:(NSError *)error;

Parameters

error

An error with domain ASWebAuthenticationSessionErrorDomain and a suitable code from ASWebAuthenticationSessionErrorCode that indicates the reason for the cancelation.

Discussion

Call this method from your browser app when the authentication attempt fails to complete, for example because the user cancels it.

See Also

Finishing a Request

- completeWithCallbackURL:

Indicates that the browser successfully completed the authentication attempt.