From da8a81c4ebe2359fbf9cafc5838d20d93aa3182b Mon Sep 17 00:00:00 2001 From: Siddarth Date: Mon, 27 Jul 2020 22:58:44 +0530 Subject: [PATCH] fix(client): append query params to url --- src/client/client.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/client/client.ts b/src/client/client.ts index 56ef6bc..d07d990 100644 --- a/src/client/client.ts +++ b/src/client/client.ts @@ -66,11 +66,10 @@ export class AuthlessClient { } } } - const body = AuthlessClient.makeParams(params) + const query = AuthlessClient.makeParams(params) try { - const response = await fetch(params.serverUrl, { + const response = await fetch(`${params.serverUrl}?${query}`, { method: 'GET', - body }) let data: any = '' if(params.responseFormat === 'json') {