Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Pass a view controller when handing over errors to host apps #545

@ctarda

Description

@ctarda

In we PR #525 we added a couple of delegate methods to allow host apps to decide if they want to handle specific errors.

func handleError(_ error: Error, onCompletion: @escaping (UIViewController) -> Void) assumes that host apps will handle an error by providing custom UI back to WPAuthenticator, but we have found a case where the host app just want to present a FancyAlertController itself.

So we would need to pass a reference to the VC originating the error as well.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions