(usually an email address)
The response body with the user's JWT token.
Get an access token for a user via their username and password. Even if the API client was not initialized with a user access token, performing this action will internally set the token if the login is successful.
const client = new OutsetaApiClient({ subdomain: 'test-company' });
const response = await client.user.login('username', 'password');
console.log(response.access_token);
(usually an email address)
The response body with the user's JWT token.
Generated using TypeDoc
Get an access token for any user using the server's API key and secret. Even if the API client was not initialized with a user access token, performing this action will internally set the token if the login is successful.
Response If the server returns a non-"OK" status, the whole response object will be thrown.