PlanningCenterAuthRedirector typedef

PlanningCenterAuthRedirector = Future<String> Function(String url)

PlanningCenterAuthRedirector describes a function that receives a url, prompts the user to visit that url in a browser, and then has some method to receive and handle the authorization code returned by Planning Center as query parameters to the callback url.

This is usually managed by opening up a local http server to listen to url requests sent by the browser.

Implementation

typedef PlanningCenterAuthRedirector = Future<String> Function(String url);