Miss any of our Open RFC calls?Watch the recordings here! »

@mycure/sdk

5.7.7 • Public • Published

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' })

Keywords

none

Install

npm i @mycure/sdk

DownloadsWeekly Downloads

175

Version

5.7.7

License

MIT

Unpacked Size

242 kB

Total Files

169

Last publish

Collaborators

  • avatar
  • avatar