dh-auth-library 1.2.1 → 1.2.2

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.
@@ -1,2 +1,2 @@
1
1
  export * from './apiTokenHelper';
2
- export * from './sessionHandlerResolvers';
2
+ export * from '../getSessionHandler';
@@ -0,0 +1,2 @@
1
+ import { TestProfile } from '../constants';
2
+ export declare function getSessionHandler(testProfile: TestProfile): import("nl-portal-playwright-libraries").SessionHandler;
package/dist/index.cjs.js CHANGED
@@ -539,9 +539,9 @@ function getApiTokenFromSession(baseTest, handler) {
539
539
  });
540
540
  }
541
541
  //#endregion
542
- //#region src/auth/api/sessionHandlerResolvers.ts
543
- function getSessionHandler(authType, account) {
544
- return createSessionHandler(authType, account, getLoginHandler(authType));
542
+ //#region src/auth/getSessionHandler.ts
543
+ function getSessionHandler(testProfile) {
544
+ return createSessionHandler(testProfile.authType, testProfile.account, getLoginHandler(testProfile.authType));
545
545
  }
546
546
  //#endregion
547
547
  exports.ADLoginHandler = ADLoginHandler;
package/dist/index.es.js CHANGED
@@ -515,9 +515,9 @@ function getApiTokenFromSession(baseTest, handler) {
515
515
  });
516
516
  }
517
517
  //#endregion
518
- //#region src/auth/api/sessionHandlerResolvers.ts
519
- function getSessionHandler(authType, account) {
520
- return createSessionHandler(authType, account, getLoginHandler(authType));
518
+ //#region src/auth/getSessionHandler.ts
519
+ function getSessionHandler(testProfile) {
520
+ return createSessionHandler(testProfile.authType, testProfile.account, getLoginHandler(testProfile.authType));
521
521
  }
522
522
  //#endregion
523
523
  export { ADLoginHandler, ADLoginPage, DigidGemachtigdeLoginHandler, DigidLoginHandler, DigidLoginPage, EHerkenningBewindvoerderLoginHandler, EHerkenningLoginHandler, EHerkenningLoginPage, LocalhostLoginHandler, LoginOverzichtPage, MAX_SESSION_TIME_IN_MINUTES, SessionFileHelper, createSessionHandler, getApiTokenFromSession, getLoginHandler, getSessionHandler };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dh-auth-library",
3
- "version": "1.2.1",
3
+ "version": "1.2.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/Gemeente-DenHaag/dh-auth-library.git"
@@ -1,3 +0,0 @@
1
- import { Account } from 'nl-portal-playwright-libraries';
2
- import { AuthType } from '../../constants/authTypes';
3
- export declare function getSessionHandler(authType: AuthType, account: Account): import("nl-portal-playwright-libraries").SessionHandler;