@kwiz/node 1.0.4 → 1.0.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kwiz/node",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "description": "KWIZ utilities and helpers for node applications",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",
package/src/spo/common.ts CHANGED
@@ -1,12 +1,12 @@
1
- import { AuthContextType, GetMSALSiteScope, ITenantInfo, isNullOrUndefined } from "@kwiz/common";
1
+ import { GetMSALSiteScope, isNullOrUndefined } from "@kwiz/common";
2
2
  import { GetMSALToken } from "../auth/msal";
3
3
  import { getAxiosConfigBearer } from "../axios";
4
4
 
5
- var auth: AuthContextType = null;
6
- export function ConfigureSPOAuth(config?: AuthContextType) {
5
+ var auth: any = null;
6
+ export function ConfigureSPOAuth(config?: any) {
7
7
  auth = config;
8
8
  }
9
- export async function getAxiosConfigSharePoint(tenantInfo: ITenantInfo, hostName: string) {
9
+ export async function getAxiosConfigSharePoint(tenantInfo: any, hostName: string) {
10
10
  if (isNullOrUndefined(auth)) throw Error("Call ConfigureSPOAuth first");
11
11
  // only certificate supported
12
12
  // DisableCustomAppAuthentication property, that disable this kind of auth., however it can be overriden using this command: