wm-idp-sdk
v1.2.1
Published
SDK for WM Identity Provider integration
Readme
wm-idp-sdk
A lightweight SDK for integrating with the WM Identity Provider.
Installation
npm install wm-idp-sdk
# or
yarn add wm-idp-sdkUsage
import { IdpClient } from 'wm-idp-sdk';
const client = new IdpClient({
baseUrl: 'https://idp.wm.com',
apiKey: 'your-api-key'
});
async function authenticate() {
const session = await client.login('username', 'password');
console.log('Logged in:', session.token);
}Features
- Simple authentication flow
- Token management and refresh
- Secure credential handling
- TypeScript support
Development
Build
npm run buildTest
npm run testLint
npm run lintLicense
MIT
