@arizondigital/catalyst-sso 0.1.2 → 0.1.3

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/package.json +1 -1
  2. package/src/index.js +2 -2
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.1.2",
6
+ "version": "0.1.3",
7
7
  "description": "Integer Catalyst SSO package",
8
8
  "license": "MIT",
9
9
  "author": "Arizon Digital",
package/src/index.js CHANGED
@@ -34,13 +34,13 @@ function SsoButtonPlaceholder({ buttonText, loginUrl }) {
34
34
  );
35
35
  }
36
36
 
37
- export function OktaSamlButton() {
37
+ export function OktaSamlButton({ isSandbox, storeHash }) {
38
38
  const [buttonName, setButtonName] = useState("Login With Okta");
39
39
  const [redirectUrl, setRedirectUrl] = useState("");
40
40
 
41
41
  useEffect(() => {
42
42
  fetch(
43
- "https://sso-app-merchant-dev.vercel.app/api/pqhmp0hlit/okta/saml"
43
+ `https://sso-app-merchant-dev.vercel.app/api/${storeHash}/okta/saml`
44
44
  )
45
45
  .then((response) => response.json())
46
46
  .then((data) => {