1.1.1 • Published 1 year ago

@nuskin/login-helper v1.1.1

Weekly downloads
-
License
MIT
Repository
-
Last release
1 year ago

@nuskin/login-helper

This sdk is helping the NuSkin login.

Installing

Usng npm:

npm add @nuskin/login-helper

Usng yarn:

yarn add @nuskin/login-helper

Example 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();

Resources

License

MIT

1.1.1

1 year ago

1.1.0

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago