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

@xdml/auth-xdml

0.3.1 • Public • Published

auth-frontend-xdml

NPM JavaScript Style Guide CircleCI

Install

npm install --save @xdml/auth-xdml

Usage

import * as React from 'react'
 
import {Login} from '@xdml/auth-xdml'
 
class Example extends React.Component {
  const apiList = {
    smsCodeRequest: '/api/v1/sms_code',
    bindingRequest: '/api/v1/users/binding',
    loginRequest: '/api/v1/session',
    userGet: '/api/v1/session'
  }
  render () {
    return (
      <Login title='Your Site Name' baseUrl={Your API BaseUrl} wechatAppId="Your Wechat ID" api={apiList}/>
    )
  }
}

License

MIT © jrg-team

Keywords

none

Install

npm i @xdml/auth-xdml

DownloadsWeekly Downloads

9

Version

0.3.1

License

MIT

Unpacked Size

1.38 MB

Total Files

39

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar