File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -20,15 +20,15 @@ export const useSeamClient = ({
20
20
// backend generated client access token
21
21
setCookie ( `seam-clientSessionToken-${ userIdentifierKey } ` , clientSessionToken , 30 )
22
22
const seam = new Seam ( {
23
- apiKey : clientSessionToken ,
23
+ clientSessionToken : clientSessionToken ,
24
24
endpoint,
25
25
} )
26
26
return seam
27
27
} else if ( clientSessionTokenFromCookie ) {
28
28
// already have client access token from cookie
29
29
// no need to use public key
30
30
const seam = new Seam ( {
31
- apiKey : clientSessionTokenFromCookie ,
31
+ clientSessionToken : clientSessionTokenFromCookie ,
32
32
endpoint,
33
33
} )
34
34
// TODO: check if client access token is valid (not expired), if expired/invalid, get new one with the public key
@@ -46,7 +46,7 @@ export const useSeamClient = ({
46
46
}
47
47
setCookie ( `seam-clientSessionToken-${ userIdentifierKey } ` , clientSessionToken , 30 )
48
48
const seam = new Seam ( {
49
- apiKey : clientSessionToken ,
49
+ clientSessionToken : clientSessionToken ,
50
50
endpoint : endpoint ,
51
51
} )
52
52
return seam
You can’t perform that action at this time.
0 commit comments