Skip to content

Commit 672793d

Browse files
committed
fix: logoutByIssuer
1 parent eee9b79 commit 672793d

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

src/utils/rest.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,7 @@ export function post<TBody extends Record<string, string | number | boolean>, TR
3838
) {
3939
return emitRequest<TResponse>(url, {
4040
method: 'POST',
41-
headers: {
42-
'X-Magic-Secret-Key': secretApiKey,
43-
'Content-Type': 'application/json'
44-
},
41+
headers: { 'X-Magic-Secret-Key': secretApiKey },
4542
body: JSON.stringify(body),
4643
});
4744
}

test/spec/utils/rest/post.spec.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,7 @@ test('Successfully POSTs to the given endpoint & stringifies body', async () =>
2626
'https://example.com/hello/world',
2727
{
2828
method: 'POST',
29-
headers: {
30-
'X-Magic-Secret-Key': API_KEY,
31-
'Content-Type': 'application/json'
32-
},
29+
headers: { 'X-Magic-Secret-Key': API_KEY },
3330
body: '{"public_address":"0x0123"}',
3431
},
3532
]);

0 commit comments

Comments
 (0)