Skip to content

Commit 14f3fd3

Browse files
committed
fix: add content type headers to commandlogin fetch request
1 parent 8bee0de commit 14f3fd3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/auth/CommandLogin.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,7 @@ class CommandLogin extends CommandPolykey {
8888
try {
8989
result = await fetch(incomingPayload.returnURL, {
9090
method: 'POST',
91+
headers: { 'Content-Type': 'application/json' },
9192
body: JSON.stringify({ token: compactHeader }),
9293
});
9394
} catch (e) {

0 commit comments

Comments
 (0)