OAuth1
Grants
Password grant
await exh.auth.authenticate({
email:'[email protected]',
password:'myPassword1234'
});Mfa Grant
try {
await exh.auth.authenticate({
password: '',
email: '',
});
} catch (error) {
if (error instanceof MfaRequiredError) {
const { mfa } = error.response;
// Your logic to request which method the user want to use in case of multiple methods
const methodId = mfa.methods[0].id;
await exh.auth.confirmMfa({
token: mfa.token,
methodId,
code: '', // code from ie. Google Authenticator
});
}
// handle other possible authentication errors
}SSO Token Grant
Tokens
Retrieve a list of active tokens
Revoking tokens
SSO
Generate SSO Tokens
Last updated