Skip to content

Commit

Permalink
fix: add content type header to sign in request
Browse files Browse the repository at this point in the history
  • Loading branch information
aj-may committed Jan 11, 2023
1 parent 0defb59 commit 5d8751c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/useSignIn.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ export const getMessageBody = ({ message }: { message: SiweMessage }) =>
export const verify = async (args: VerifyArgs, options?: UseSiweOptions) => {
const { baseUrl } = parseOptions(options);
const res = await fetch(`${baseUrl}/signin`, {
headers: { 'Content-Type': 'application/json' },
method: "POST",
body: JSON.stringify(args),
});
Expand Down

0 comments on commit 5d8751c

Please sign in to comment.