Skip to content

Commit 5d8751c

Browse files
committed
fix: add content type header to sign in request
1 parent 0defb59 commit 5d8751c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/useSignIn.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ export const getMessageBody = ({ message }: { message: SiweMessage }) =>
3232
export const verify = async (args: VerifyArgs, options?: UseSiweOptions) => {
3333
const { baseUrl } = parseOptions(options);
3434
const res = await fetch(`${baseUrl}/signin`, {
35+
headers: { 'Content-Type': 'application/json' },
3536
method: "POST",
3637
body: JSON.stringify(args),
3738
});

0 commit comments

Comments
 (0)