Skip to content

Commit

Permalink
Merge pull request #813 from supertokens/chore/add-status-code-desync…
Browse files Browse the repository at this point in the history
…ed-session-log

Chore: Add status code to desynced_session_state payload
  • Loading branch information
rishabhpoddar authored Jul 15, 2024
2 parents f3c536a + 1e91a26 commit 3e1c0ad
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions v2/src/components/httpNetworking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -256,6 +256,7 @@ function getCookieValue(cookieName: string) {
const payload = {
didFrontTokenExistBeforeAPICall,
stLastAccessTokenUpdate: getCookieValue("st-last-access-token-update"),
statusCode: 200
};
getAnalytics().then((stAnalytics: any) => {
if (stAnalytics === undefined) {
Expand Down Expand Up @@ -283,6 +284,7 @@ function getCookieValue(cookieName: string) {
const payload = {
didFrontTokenExistBeforeAPICall,
stLastAccessTokenUpdate: getCookieValue("st-last-access-token-update"),
statusCode: 401
};
getAnalytics().then((stAnalytics: any) => {
if (stAnalytics === undefined) {
Expand Down

0 comments on commit 3e1c0ad

Please sign in to comment.