@nuskin/login-helper
v1.2.0
Published
This library is used to assist the login
Keywords
Readme
@nuskin/login-helper
This sdk is helping the NuSkin login.
Installing
Usng npm:
npm add @nuskin/login-helperUsng yarn:
yarn add @nuskin/login-helperExample usage for oktaLogin
const {
oktaLogin
} = require('@nuskin/login-helper');
const data = {'accessToken': 'xxxxx', 'idToken': 'xxxxx'};
const username = '';
try {
const result = await oktaLogin(data, username);
console.log('result is:', result);
} catch (e) {
console.log('Error: ', e);
}
Example usage for logout
const {
logout
} = require('@nuskin/login-helper');
logout();
