attlaz-client 1.7.3 → 1.7.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@ import { ClientError } from '../Model/Error/ClientError';
2
2
  import { HttpClient } from './HttpClient';
3
3
  import { HttpClientRequest } from './HttpClientRequest';
4
4
  import { OAuthClientToken } from './OAuthClientToken';
5
- import * as ClientOAuth2 from 'client-oauth2';
5
+ import ClientOAuth2 from 'client-oauth2';
6
6
  import { JsonSerializable } from '../Model/JsonSerializable';
7
7
  export class OAuthClient {
8
8
  constructor(options) {
package/dist/auth.spec.js CHANGED
@@ -9,8 +9,8 @@ const clientCredentialClientId = 'zSGdVWE3FAS8kY5C';
9
9
  const clientCredentialClientSecret = '6jhYgFPAUm9HmCus';
10
10
  const passwordFlowClientId = 'MXexCeRqNrGnh5tw';
11
11
  const passwordFlowClientSecret = 'NPYYu6hgMRRzcWN4';
12
- const passwordFlowUsername = 'eline@attlaz.com';
13
- const passwordFlowPassword = 'koetjeboe';
12
+ const passwordFlowUsername = 'demo@attlaz.com';
13
+ const passwordFlowPassword = 'Kd9X&jKiSJDXb3@cTq';
14
14
  const tokenExpirationInSeconds = 5;
15
15
  test('Test client credentials flow', async () => {
16
16
  expect.assertions(2);
@@ -53,7 +53,7 @@ test('Test password authentication - valid', async () => {
53
53
  await client.authenticate(passwordFlowUsername, passwordFlowPassword);
54
54
  const user = await client.getUserEndpoint().getUser();
55
55
  // console.log('User', user);
56
- expect(user.email).toBe('eline@attlaz.com');
56
+ expect(user.email).toBe('demo@attlaz.com');
57
57
  // TODO: how to get the seconds to wait for the token to expire?
58
58
  const waitSecondsForTokenToExpire = tokenExpirationInSeconds + 5;
59
59
  // console.log(client.getToken().expires);
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "1.7.3";
1
+ export declare const VERSION = "1.7.5";
package/dist/version.js CHANGED
@@ -1 +1 @@
1
- export const VERSION = "1.7.3";
1
+ export const VERSION = "1.7.5";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "attlaz-client",
3
- "version": "1.7.3",
3
+ "version": "1.7.5",
4
4
  "description": "Javascript Client to access Attlaz API",
5
5
  "exports": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",