@xdml/auth-xdml
TypeScript icon, indicating that this package has built-in type declarations

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

Readme

Keywords

none

Package Sidebar

Install

npm i @xdml/auth-xdml

Weekly Downloads

0

Version

0.3.1

License

MIT

Unpacked Size

1.38 MB

Total Files

39

Last publish

Collaborators

  • big7lion
  • frankfang
  • hunger
  • zegendary