@livetiles/reach-plugin-types 0.4.0-preview.806 → 0.4.0-preview.807

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +5 -3
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -129,6 +129,7 @@ declare module "libs/shared/util/authentication/src/AuthenticationContext" {
129
129
  export const AuthenticationContext: import("react").Context<{
130
130
  getIsAuthenticated: () => Promise<boolean>;
131
131
  onRequestToken: () => Promise<string>;
132
+ onRequestTokenWithCustomScopes?: (scopes: string[]) => Promise<string>;
132
133
  onHandleError?: (error: any, config: any) => Promise<void>;
133
134
  getCurrentEmail: () => Promise<string>;
134
135
  setToken: (token: string) => void;
@@ -136,6 +137,7 @@ declare module "libs/shared/util/authentication/src/AuthenticationContext" {
136
137
  export function useAuthenticationContext(): {
137
138
  getIsAuthenticated: () => Promise<boolean>;
138
139
  onRequestToken: () => Promise<string>;
140
+ onRequestTokenWithCustomScopes?: (scopes: string[]) => Promise<string>;
139
141
  onHandleError?: (error: any, config: any) => Promise<void>;
140
142
  getCurrentEmail: () => Promise<string>;
141
143
  setToken: (token: string) => void;
@@ -5558,7 +5560,7 @@ declare module "libs/shared/util/authentication-services/src/BaseAuthService" {
5558
5560
  getCurrentEmail(): Promise<string | null>;
5559
5561
  protected abstract loginInternal(LoginConfiguration: LoginArguments): Promise<boolean>;
5560
5562
  protected abstract logoutInternal(postLogoutRedirectUri?: string): Promise<void>;
5561
- abstract acquireToken(): Promise<string>;
5563
+ abstract acquireToken(scopes?: string[]): Promise<string>;
5562
5564
  abstract clearCache(): Promise<void>;
5563
5565
  abstract handleCallbackInternal(redirectUrl: string): Promise<boolean>;
5564
5566
  abstract isLoginInProgress(): Promise<boolean>;
@@ -5669,7 +5671,7 @@ declare module "libs/shared/util/authentication-services/src/msal/WebMsalService
5669
5671
  clearCache(): Promise<void>;
5670
5672
  isAuthenticated(): Promise<boolean>;
5671
5673
  isLoginInProgress(): Promise<boolean>;
5672
- acquireToken(): Promise<string>;
5674
+ acquireToken(scopes?: string[]): Promise<string>;
5673
5675
  private acquireTokenInternal;
5674
5676
  private acquireTokenSilent;
5675
5677
  private requiresInteraction;
@@ -5724,7 +5726,7 @@ declare module "libs/shared/util/authentication-services/src/msal/MobileMsalServ
5724
5726
  protected logoutInternal(postLogoutRedirectUri?: string): Promise<void>;
5725
5727
  isAuthenticated(): Promise<boolean>;
5726
5728
  isLoginInProgress(): Promise<boolean>;
5727
- acquireToken(): Promise<string>;
5729
+ acquireToken(scopes?: string[]): Promise<string>;
5728
5730
  private acquireTokenInternal;
5729
5731
  clearCache(): Promise<void>;
5730
5732
  getCurrentEmailInternal(): Promise<string>;
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.4.0-preview.806",
7
+ "version": "0.4.0-preview.807",
8
8
  "dependencies": {}
9
9
  }