@luxfi/core 4.4.6 → 4.4.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ const AuthListener = () => {
13
13
 
14
14
  useEffect(() => {
15
15
  const handleMessage = (event: any) => {
16
- if (event.origin === process.env.NEXT_PUBLIC_AUTH_ORIGIN) {
16
+ if (event.origin === process.env.NEXT_PUBLIC_LOGIN_SITE_URL) {
17
17
  const token = event.data
18
18
  auth.loginWithCustomToken(token)
19
19
  }
@@ -45,7 +45,7 @@ const LoginPanel: React.FC<{
45
45
  const handleMessage = (event: any) => {
46
46
  if (domains.includes(event.origin)) {
47
47
  const token = getCookie('auth-token')
48
- parent.contentWindow?.postMessage(token, event.origin)
48
+ parent?.contentWindow?.postMessage(token, event.origin)
49
49
  }
50
50
  }
51
51
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@luxfi/core",
3
- "version": "4.4.6",
3
+ "version": "4.4.8",
4
4
  "description": "Library that contains shared UI primitives, support for a common design system, and other boilerplate support.",
5
5
  "publishConfig": {
6
6
  "registry": "https://registry.npmjs.org/",
@@ -39,8 +39,8 @@
39
39
  "./conf": "./conf/index.ts"
40
40
  },
41
41
  "dependencies": {
42
- "@hanzo/auth": "2.4.3",
43
- "@hanzo/commerce": "6.4.3",
42
+ "@hanzo/auth": "2.4.4",
43
+ "@hanzo/commerce": "6.4.4",
44
44
  "@hanzo/ui": "3.6.3",
45
45
  "@next/third-parties": "^14.1.0",
46
46
  "cookies-next": "^4.1.1",