@pega/react-sdk-components 8.23.11-debug3 → 8.23.11-debug4

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,30 +1,16 @@
1
- export class PegaAuth {
2
- constructor(ssKeyConfig: any, ssKeyDynState?: string);
3
- ssKeyConfig: string | undefined;
4
- ssKeyDynState: string | undefined;
5
- urlencoded: string;
6
- tokenError: string;
7
- isNode: boolean;
8
- crypto: Crypto | undefined;
9
- subtle: SubtleCrypto | undefined;
1
+ export default PegaAuth;
2
+ declare class PegaAuth {
3
+ constructor(ssKeyConfig: any);
4
+ ssKeyConfig: any;
5
+ bEncodeSI: boolean;
6
+ reloadConfig(): void;
7
+ config: {} | null | undefined;
10
8
  login(): Promise<any>;
11
9
  loginRedirect(): void;
12
- checkStateMatch(state: any): boolean;
13
10
  getToken(authCode: any): Promise<any>;
14
- refreshToken(refreshToken: any): Promise<any>;
15
- /**
16
- * Revokes tokens (useful as part of a logout operation). For non-secureCookie, the accessToken and
17
- * the optional refreshToken would be passed in and the routine will generate two separate revoke
18
- * transactions. For secureCookie scenario, will issue just one for the accessToken, but this will
19
- * also revoke the refresh token if present.
20
- * @param {string} accessToken - the access token (or any string value for secureCookie scenario)
21
- * @param {string} refreshToken - optional refresh token (or any string value for non secureCookie
22
- * scenario, when a refreshToken exists)
23
- * @returns
24
- */
25
- revokeTokens(accessToken: string, refreshToken?: string): Promise<void>;
26
- getUserinfo(accessToken: any): Promise<any>;
11
+ refreshToken(refresh_token: any): Promise<any>;
12
+ revokeTokens(access_token: any, refresh_token?: null): Promise<void>;
13
+ getUserinfo(access_token: any): Promise<any>;
27
14
  #private;
28
15
  }
29
- export default PegaAuth;
30
16
  //# sourceMappingURL=auth.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/auth.js"],"names":[],"mappings":"AACA;IAUI,sDA0BC;IAxBG,gCAA8B;IAC9B,kCAAyD;IAO3D,mBAAqD;IACrD,mBAAwC;IACxC,gBAA2C;IAIzC,2BAA2B;IAC3B,iCAAkC;IAqKtC,sBAgBC;IAiWD,sBAOC;IAGD,qCAEC;IAeD,sCAsHC;IAED,8CAqDC;IAED;;;;;;;;;OASG;IACH,0BALW,MAAM,iBACN,MAAM,iBA2DhB;IAID,4CA4BC;;CAiEF"}
1
+ {"version":3,"file":"auth.d.ts","sourceRoot":"","sources":["../../../src/components/helpers/auth.js"],"names":[],"mappings":";AAAA;IAEE,8BAIC;IAHG,iBAA8B;IAC9B,mBAAsB;IAI1B,qBAgBC;IADG,8BAAmC;IAgDvC,sBAyMC;IAGD,sBAOC;IAID,sCAoDC;IAGD,+CAqCC;IAED,qEA4CC;IAID,6CAwBC;;CA0CF"}