handle static method

dynamic handle(
  1. dynamic uri
)

Implementation

static handle(uri)  {
  if (Hera.redirectUrl != "" &&
      uri.path == Uri.parse(Hera.redirectUrl).path) {
    Hera.setTokenPair(
        accessToken: uri.queryParameters["access_token"],
        refreshToken: uri.queryParameters["refresh_token"])
        .then((_) => {
      context.callMethod('open', ["/", '_self'])
    });
  }
}