0.0.15 • Published 4 years ago
0auth-sdk v0.0.15
0auth-sdk
Client Side JavaScript toolkit for 0Auth.
Installation
With npm:
npm install 0auth-sdkWith yarn:
yarn add 0auth-sdkUsage
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()