Skip to content

Commit

Permalink
feat(web): add-domain-check-in-signrature-verify
Browse files Browse the repository at this point in the history
  • Loading branch information
Harman-singh-waraich committed Mar 22, 2024
1 parent 70aa4fb commit 557098c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/netlify/functions/authUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const authUser = async (event) => {
// TODO: Ideally we would want to check domain and origin here too, have not added yet since we would need to change the env for each deploy preview
// on production :-
// await siweMessage.verify({signature, domain :"kleros", origin :"https://kleros.io"})
await siweMessage.verify({ signature });
await siweMessage.verify({ signature, domain: event.headers.host });
} catch (err) {
throw new Error("Invalid signer");
}
Expand Down

0 comments on commit 557098c

Please sign in to comment.