0.5.0 • Published 6 years ago

@lims.io/connector-auth v0.5.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
6 years ago

LIMS Connector for Auth

Injects Auth to the web page and allows communication with the related API.

Getting started

import Dock from "@lims.io/connector-auth";

// The name of the node that will hold the component
const node = '#container';
// Url to api
const url = '...';

const auth = Auth(node, url, {    
    onLoad() {
        
    },
    // Other API calls
});

Drivers

The library can be also used as a part of the following frameworks.

React

import React from "react";
import ReactDOM from "react-dom";
import {createReactComponent} from "@lims.io/connector-auth";

// Dock component
const Auth = createReactComponent(React, ReactDOM);

const View = ({url, onLoad}) => (   
    <div>
        <Auth url={url} onLoad={onLoad}/>
    </div>
);
0.5.0

6 years ago

0.4.0

6 years ago

0.3.0

6 years ago

0.2.0

6 years ago

0.1.2

6 years ago

0.1.0

6 years ago