about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/state/session/__tests__/session-test.ts58
-rw-r--r--src/state/session/agent.ts2
2 files changed, 30 insertions, 30 deletions
diff --git a/src/state/session/__tests__/session-test.ts b/src/state/session/__tests__/session-test.ts
index c8c1e103f..ffffd332e 100644
--- a/src/state/session/__tests__/session-test.ts
+++ b/src/state/session/__tests__/session-test.ts
@@ -59,7 +59,7 @@ describe('session', () => {
             "refreshJwt": "alice-refresh-jwt-1",
             "service": "https://alice.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
         ],
         "currentAgentState": {
@@ -97,7 +97,7 @@ describe('session', () => {
             "refreshJwt": undefined,
             "service": "https://alice.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
         ],
         "currentAgentState": {
@@ -147,7 +147,7 @@ describe('session', () => {
             "refreshJwt": "alice-refresh-jwt-1",
             "service": "https://alice.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
         ],
         "currentAgentState": {
@@ -195,7 +195,7 @@ describe('session', () => {
             "refreshJwt": "bob-refresh-jwt-1",
             "service": "https://bob.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
           {
             "accessJwt": "alice-access-jwt-1",
@@ -208,7 +208,7 @@ describe('session', () => {
             "refreshJwt": "alice-refresh-jwt-1",
             "service": "https://alice.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
         ],
         "currentAgentState": {
@@ -256,7 +256,7 @@ describe('session', () => {
             "refreshJwt": "alice-refresh-jwt-2",
             "service": "https://alice.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
           {
             "accessJwt": "bob-access-jwt-1",
@@ -269,7 +269,7 @@ describe('session', () => {
             "refreshJwt": "bob-refresh-jwt-1",
             "service": "https://bob.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
         ],
         "currentAgentState": {
@@ -315,7 +315,7 @@ describe('session', () => {
             "refreshJwt": "jay-refresh-jwt-1",
             "service": "https://jay.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
           {
             "accessJwt": "alice-access-jwt-2",
@@ -328,7 +328,7 @@ describe('session', () => {
             "refreshJwt": "alice-refresh-jwt-2",
             "service": "https://alice.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
           {
             "accessJwt": "bob-access-jwt-1",
@@ -341,7 +341,7 @@ describe('session', () => {
             "refreshJwt": "bob-refresh-jwt-1",
             "service": "https://bob.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
         ],
         "currentAgentState": {
@@ -383,7 +383,7 @@ describe('session', () => {
             "refreshJwt": undefined,
             "service": "https://jay.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
           {
             "accessJwt": undefined,
@@ -396,7 +396,7 @@ describe('session', () => {
             "refreshJwt": undefined,
             "service": "https://alice.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
           {
             "accessJwt": undefined,
@@ -409,7 +409,7 @@ describe('session', () => {
             "refreshJwt": undefined,
             "service": "https://bob.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
         ],
         "currentAgentState": {
@@ -468,7 +468,7 @@ describe('session', () => {
             "refreshJwt": undefined,
             "service": "https://alice.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
         ],
         "currentAgentState": {
@@ -513,7 +513,7 @@ describe('session', () => {
             "refreshJwt": "alice-refresh-jwt-2",
             "service": "https://alice.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
         ],
         "currentAgentState": {
@@ -625,7 +625,7 @@ describe('session', () => {
             "refreshJwt": "bob-refresh-jwt-1",
             "service": "https://bob.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
         ],
         "currentAgentState": {
@@ -706,7 +706,7 @@ describe('session', () => {
             "refreshJwt": "alice-refresh-jwt-2",
             "service": "https://alice.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
         ],
         "currentAgentState": {
@@ -757,7 +757,7 @@ describe('session', () => {
             "refreshJwt": "alice-refresh-jwt-3",
             "service": "https://alice.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
         ],
         "currentAgentState": {
@@ -808,7 +808,7 @@ describe('session', () => {
             "refreshJwt": "alice-refresh-jwt-4",
             "service": "https://alice.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
         ],
         "currentAgentState": {
@@ -965,7 +965,7 @@ describe('session', () => {
             "refreshJwt": "bob-refresh-jwt-1",
             "service": "https://bob.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
           {
             "accessJwt": "alice-access-jwt-2",
@@ -978,7 +978,7 @@ describe('session', () => {
             "refreshJwt": "alice-refresh-jwt-2",
             "service": "https://alice.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
         ],
         "currentAgentState": {
@@ -1027,7 +1027,7 @@ describe('session', () => {
             "refreshJwt": "bob-refresh-jwt-2",
             "service": "https://bob.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
           {
             "accessJwt": "alice-access-jwt-2",
@@ -1040,7 +1040,7 @@ describe('session', () => {
             "refreshJwt": "alice-refresh-jwt-2",
             "service": "https://alice.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
         ],
         "currentAgentState": {
@@ -1188,7 +1188,7 @@ describe('session', () => {
             "refreshJwt": "alice-refresh-jwt-1",
             "service": "https://alice.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
         ],
         "currentAgentState": {
@@ -1251,7 +1251,7 @@ describe('session', () => {
             "refreshJwt": undefined,
             "service": "https://alice.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
         ],
         "currentAgentState": {
@@ -1314,7 +1314,7 @@ describe('session', () => {
             "refreshJwt": undefined,
             "service": "https://alice.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
         ],
         "currentAgentState": {
@@ -1406,7 +1406,7 @@ describe('session', () => {
             "refreshJwt": "jay-refresh-jwt-1",
             "service": "https://jay.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
           {
             "accessJwt": "bob-access-jwt-2",
@@ -1419,7 +1419,7 @@ describe('session', () => {
             "refreshJwt": "bob-refresh-jwt-2",
             "service": "https://alice.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
         ],
         "currentAgentState": {
@@ -1466,7 +1466,7 @@ describe('session', () => {
             "refreshJwt": "clarence-refresh-jwt-2",
             "service": "https://clarence.com/",
             "signupQueued": false,
-            "status": "active",
+            "status": undefined,
           },
         ],
         "currentAgentState": {
diff --git a/src/state/session/agent.ts b/src/state/session/agent.ts
index cdd24cd15..2b5e85a49 100644
--- a/src/state/session/agent.ts
+++ b/src/state/session/agent.ts
@@ -236,7 +236,7 @@ export function agentToSessionAccount(
     accessJwt: agent.session.accessJwt,
     signupQueued: isSignupQueued(agent.session.accessJwt),
     // @ts-expect-error TODO remove when backend is ready
-    status: agent.session.status || 'active',
+    status: agent.session.status,
     pdsUrl: agent.pdsUrl?.toString(),
   }
 }