cancelWithError(_:)
Indicates that the browser canceled the authentication attempt.
Declaration
func cancelWithError(_ error: any Error)Parameters
- error:
An error with domain Aswebauthenticationsessionerrordomain and a suitable code from Code that indicates the reason for the cancelation.
Mentioned in
Discussion
Call this method from your browser app when the authentication attempt fails to complete, for example because the user cancels it.