@mycure/sdk

mycure sdk-web

Stats

StarsIssuesVersionUpdatedCreatedSize
@mycure/sdk
5.9.0a year ago4 years agoMinified + gzip package size for @mycure/sdk in KB

Readme

Mycure sdk-web

Installation and Usage

$ yarn add firebase socket.io-client @mycure/sdk
import sdk from '@mycure/sdk';
import socket from 'socket.io-client';
// import { connect as socket } from 'nativescript-socketio'; // for nativescript
import firebase from 'firebase';

// initialize the sdk
sdk.initilize('http://mcv4.herokuapp.com', {
  socket,
  firebaseApp: firebase.initializeApp({ // <-- pass already initialized firebaseApp
    // ...config here
  })
});

// observe the current user
sdk.auth().currentUser$.subscribe(console.log);

// signin
await sdk.auth().signin('local', { email: 'test@mycure.md', password: 'password' })

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.