thrm-auth-client
v1.0.8
Published
Authentication client
Readme
Auth Client Library
TypeScript authentication client for auth services
Installation
npm i thrm-auth-clientUsage
import { AuthClient } from 'thrm-auth-client';
const auth = new AuthClient({
baseUrl: 'https://api.example.com/',
})
// Password login
const tokens = await auth.token({
grant_type: 'password',
email: '[email protected]',
password: 'securepassword'
});
// More examples available in documentationDocumentation
Contributing
Pull requests welcome! Please open an issue first to discuss changes.
License
MIT
