@sasjs/adapter 4.10.1 → 4.11.0

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.
@@ -32,7 +32,7 @@ export declare class AuthManager {
32
32
  * - a boolean `isLoggedIn`
33
33
  * - a string `userName`,
34
34
  * - a string `userFullName` and
35
- * - a form `loginForm` if not loggedin.
35
+ * - a form `loginForm` if not loggedIn.
36
36
  */
37
37
  checkSession(): Promise<LoginResultInternal>;
38
38
  private getNewLoginForm;
@@ -1,3 +1,4 @@
1
1
  export * from './AuthManager';
2
2
  export * from './isAuthorizeFormRequired';
3
3
  export * from './isLoginRequired';
4
+ export * from './loginHeader';
@@ -0,0 +1,17 @@
1
+ import { ServerType } from '@sasjs/utils/types';
2
+ export declare const defaultSuccessHeaderKey = "default";
3
+ export declare const loginSuccessHeaders: {
4
+ [key: string]: string;
5
+ };
6
+ /**
7
+ * Provides expected login header based on language settings of the browser.
8
+ * @returns - expected header as a string.
9
+ */
10
+ export declare const getExpectedLogInSuccessHeader: () => string;
11
+ /**
12
+ * Checks if Login success header is present in the response based on language settings of the browser.
13
+ * @param serverType - server type.
14
+ * @param response - response object.
15
+ * @returns - boolean indicating if Login success header is present.
16
+ */
17
+ export declare const isLogInSuccessHeaderPresent: (serverType: ServerType, response: any) => boolean;