Skip to content

Commit 717bfad

Browse files
committed
fix: Disallow using apiKey with client
1 parent f5ea46a commit 717bfad

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/lib/seam/components/DeviceTable/DeviceTable.test.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ import { DeviceTable } from './DeviceTable.js'
44

55
test('DeviceTable', async () => {
66
render(<DeviceTable />)
7-
await screen.findByText('...')
7+
await screen.findByText('Front Door')
88
})

src/lib/seam/use-seam-client.ts

+2
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export function useSeamClient(): {
3939
if (clientSessionToken != null) {
4040
return new Seam({
4141
...clientOptions,
42+
apiKey: undefined,
4243
clientSessionToken,
4344
})
4445
}
@@ -61,6 +62,7 @@ export function useSeamClient(): {
6162

6263
return new Seam({
6364
...clientOptions,
65+
apiKey: undefined,
6466
clientSessionToken: res.client_session.token,
6567
})
6668
},

0 commit comments

Comments
 (0)