Skip to content

Commit 3e1c0ad

Browse files
Merge pull request #813 from supertokens/chore/add-status-code-desynced-session-log
Chore: Add status code to desynced_session_state payload
2 parents f3c536a + 1e91a26 commit 3e1c0ad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

v2/src/components/httpNetworking.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -256,6 +256,7 @@ function getCookieValue(cookieName: string) {
256256
const payload = {
257257
didFrontTokenExistBeforeAPICall,
258258
stLastAccessTokenUpdate: getCookieValue("st-last-access-token-update"),
259+
statusCode: 200
259260
};
260261
getAnalytics().then((stAnalytics: any) => {
261262
if (stAnalytics === undefined) {
@@ -283,6 +284,7 @@ function getCookieValue(cookieName: string) {
283284
const payload = {
284285
didFrontTokenExistBeforeAPICall,
285286
stLastAccessTokenUpdate: getCookieValue("st-last-access-token-update"),
287+
statusCode: 401
286288
};
287289
getAnalytics().then((stAnalytics: any) => {
288290
if (stAnalytics === undefined) {

0 commit comments

Comments
 (0)