From 1217bb22e0c5bd9d41939afe33cd63b728aacd29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Zo=C3=AB=20Maas?= Date: Thu, 9 Jan 2025 20:07:26 +0100 Subject: [PATCH] refactor: Removed ? from response.text() --- .../src/agent/DidAuthSiopOpAuthenticator.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/siopv2-oid4vp-op-auth/src/agent/DidAuthSiopOpAuthenticator.ts b/packages/siopv2-oid4vp-op-auth/src/agent/DidAuthSiopOpAuthenticator.ts index 94731f082..525cebbca 100644 --- a/packages/siopv2-oid4vp-op-auth/src/agent/DidAuthSiopOpAuthenticator.ts +++ b/packages/siopv2-oid4vp-op-auth/src/agent/DidAuthSiopOpAuthenticator.ts @@ -439,7 +439,7 @@ export class DidAuthSiopOpAuthenticator implements IAgentPlugin { const contentType = response?.headers.get('content-type') || '' let responseBody: any = null - const text = await response?.text() + const text = await response.text() if (text) { responseBody = contentType.includes('application/json') || text.startsWith('{') ? JSON.parse(text) : text }