We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ce81deb commit a0bbbfcCopy full SHA for a0bbbfc
src/hooks/use-seam-client.ts
@@ -31,7 +31,7 @@ export const useSeamClient = ({
31
// no need to use public key
32
// TODO: check if client access token is valid (not expired), if expired/invalid, get new one with the public key
33
return getSeam(clientSessionTokenFromCookie)
34
- } else if (publishableKey?.startsWith('seam_pk1')) {
+ } else if (publishableKey?.startsWith('seam_pk')) {
35
// public key, need to create a client access token and store it in cookie
36
;(async () => {
37
const clientSessionTokenResponse = await Seam.getClientSessionToken({
0 commit comments