text: // The following is a sample implementation of a backend service using Progress Kinvey (https://www.progress.com/kinvey).
  // Feel free to swap in your own service / APIs / etc here for your own apps.
  
  import { Kinvey } from "kinvey-nativescript-sdk";
  Kinvey.init({
      appKey: "kid_SyY8LYO8M",
      appSecret: "09282985d7c540f7b076a9c7fd884c77"
  });
  
  export default class BackendService {
  
      isLoggedIn() {
          return !!Kinvey.User.getActiveUser();
      }
  
      login(user) {
          return Kinvey.User.login(user.email, user.password);
      }
  
      logout() {
          return Kinvey.User.logout();
      }
  
      register(user) {
          return Kinvey.User.signup({ username: user.email, password: user.password });
      }
  }
  
  