initialize method

Future<bool> initialize()

Implementation

Future<bool> initialize() async {
  pb = PocketBase('https://grook.pockethost.io/');
  audiobookScraper = AudiobookScraper(pb);
  return pb.admins
      .authWithPassword('grookapp@tribestick.com', 'm4r4dfCgq2nPDbq')
      .then((adminAuth) {
    admin = adminAuth;
    return true;
  }).catchError((e) {
    return false;
  });
}