mario-core 2.9.212-sso → 2.9.213-sso

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,3 +1,4 @@
1
+ import { LogLevel } from "@azure/msal-browser";
1
2
  /**
2
3
  * Configuration object to be passed to MSAL instance on creation.
3
4
  * For a full list of MSAL.js configuration parameters, visit:
@@ -15,7 +16,7 @@ export declare const msalConfig: {
15
16
  };
16
17
  system: {
17
18
  loggerOptions: {
18
- loggerCallback: (level: any, message: string, containsPii: any) => void;
19
+ loggerCallback: (level: LogLevel, message: string, containsPii: any) => void;
19
20
  };
20
21
  };
21
22
  };
package/dist/index.js CHANGED
@@ -30277,7 +30277,7 @@ var useLogin = function useLogin() {
30277
30277
  }, []);
30278
30278
 
30279
30279
  var handleLoginWidthClever = function handleLoginWidthClever() {
30280
- var cleverSSOUrl = "https://clever.com/oauth/authorize?response_type=code&redirect_uri=" + encodeURIComponent("https://localhost:5001/api/clever/clever-login") + "&client_id=" + "ab1aff048ba4482d75fa";
30280
+ var cleverSSOUrl = "https://clever.com/oauth/authorize?response_type=code&redirect_uri=" + encodeURIComponent("https://stage.marioforme.com/api/clever/clever-login") + "&client_id=" + "44f4bbf55cd873d3f7e5";
30281
30281
  window.location.href = cleverSSOUrl;
30282
30282
  };
30283
30283
 
@@ -30844,7 +30844,8 @@ var BlockLogin = function BlockLogin(_ref) {
30844
30844
  submitLogin = _useLogin.submitLogin,
30845
30845
  infoUser = _useLogin.infoUser,
30846
30846
  googleClientId = _useLogin.googleClientId,
30847
- fnLoginSSO = _useLogin.fnLoginSSO;
30847
+ fnLoginSSO = _useLogin.fnLoginSSO,
30848
+ handleLoginWidthClever = _useLogin.handleLoginWidthClever;
30848
30849
 
30849
30850
  var togglePasswordVisible = function togglePasswordVisible() {
30850
30851
  return setIsShowPassword(!isShowPassword);
@@ -30990,6 +30991,16 @@ var BlockLogin = function BlockLogin(_ref) {
30990
30991
  }, React__default.createElement("img", {
30991
30992
  src: "images/Single-Sign-On.png"
30992
30993
  }), " Login with SSO")), React__default.createElement("div", {
30994
+ className: styles["btn-login-sso"] + " mb-3"
30995
+ }, React__default.createElement("div", {
30996
+ className: styles["btn-login-with-sso"],
30997
+ onClick: function onClick() {
30998
+ return handleLoginWidthClever();
30999
+ }
31000
+ }, React__default.createElement("img", {
31001
+ className: styles["icon"] + " mx-3 my-2",
31002
+ src: "images/clever-icon.svg"
31003
+ }), " Login with clever")), React__default.createElement("div", {
30993
31004
  className: "d-flex justify-content-between"
30994
31005
  }, React__default.createElement(reactRouterDom.Link, {
30995
31006
  to: "/forgot-password",