Skip to content

Commit a0bbbfc

Browse files
committed
Update use-seam-client.ts
1 parent ce81deb commit a0bbbfc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hooks/use-seam-client.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ export const useSeamClient = ({
3131
// no need to use public key
3232
// TODO: check if client access token is valid (not expired), if expired/invalid, get new one with the public key
3333
return getSeam(clientSessionTokenFromCookie)
34-
} else if (publishableKey?.startsWith('seam_pk1')) {
34+
} else if (publishableKey?.startsWith('seam_pk')) {
3535
// public key, need to create a client access token and store it in cookie
3636
;(async () => {
3737
const clientSessionTokenResponse = await Seam.getClientSessionToken({

0 commit comments

Comments
 (0)