@xdml/auth-xdml
v0.3.1
Published
>
Downloads
2
Readme
auth-frontend-xdml
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