diff --git a/packages/auth-kit/CHANGELOG.md b/packages/auth-kit/CHANGELOG.md index 999c0bc..aa8e9aa 100644 --- a/packages/auth-kit/CHANGELOG.md +++ b/packages/auth-kit/CHANGELOG.md @@ -1,5 +1,11 @@ # @farcaster/auth-kit +## 0.1.4 + +### Patch Changes + +- fix: check using typeof + ## 0.1.3 ### Patch Changes diff --git a/packages/auth-kit/package.json b/packages/auth-kit/package.json index 500e429..bd6a0be 100644 --- a/packages/auth-kit/package.json +++ b/packages/auth-kit/package.json @@ -1,6 +1,6 @@ { "name": "@farcaster/auth-kit", - "version": "0.1.3", + "version": "0.1.4", "type": "module", "main": "./dist/auth-kit.js", "types": "./dist/auth-kit.d.ts", diff --git a/packages/auth-kit/src/components/AuthKitProvider/AuthKitProvider.tsx b/packages/auth-kit/src/components/AuthKitProvider/AuthKitProvider.tsx index e6d89b1..af211a2 100644 --- a/packages/auth-kit/src/components/AuthKitProvider/AuthKitProvider.tsx +++ b/packages/auth-kit/src/components/AuthKitProvider/AuthKitProvider.tsx @@ -35,7 +35,7 @@ export interface AuthKitContextValues { onSignOut: () => void; } -const domainDefaults = window?.location ? { +const domainDefaults = (typeof window !== 'undefined' && window?.location) ? { domain: window.location.host, siweUri: window.location.href } : {};