0auth-sdk 中文文档教程
0auth-sdk
0Auth 的客户端 JavaScript 工具包。
Installation
使用 npm:
npm install 0auth-sdk
使用 yarn:
yarn add 0auth-sdk
Usage
With react
初始化
import Auth from '0auth-sdk';
Auth.initialize({
brand: 'test'
});
options | type | require | description |
---|---|---|---|
brand | string | true | set login page link as [brand].0auth.kr |
getOptions
Auth.getOptions()
登录
// if initialized, push to 0auth login page
Auth.login()
getProfile
// if access token is verified
Auth.getProfile()
0auth-sdk
Client Side JavaScript toolkit for 0Auth.
Installation
With npm:
npm install 0auth-sdk
With yarn:
yarn add 0auth-sdk
Usage
With react
Initializing
import Auth from '0auth-sdk';
Auth.initialize({
brand: 'test'
});
options | type | require | description |
---|---|---|---|
brand | string | true | set login page link as [brand].0auth.kr |
getOptions
Auth.getOptions()
login
// if initialized, push to 0auth login page
Auth.login()
getProfile
// if access token is verified
Auth.getProfile()
更多
你可能也喜欢
- 4b82 中文文档教程
- @10pearls/typeorm 中文文档教程
- @4players/odin-tokens 中文文档教程
- @aabenoja/karma-phantomjs-launcher 中文文档教程
- @aacassandra/parse-config 中文文档教程
- @abcum/ember-select 中文文档教程
- @abdullahceylan/stylelint-config 中文文档教程
- @abraham/pkg-ok 中文文档教程
- @abx/multicoin-address-validator 中文文档教程
- @acmecryptocorp/prettier-config 中文文档教程