Skip to content

Commit

Permalink
use http transport for signature verification
Browse files Browse the repository at this point in the history
  • Loading branch information
ginesdt committed Jun 26, 2024
1 parent 97d2262 commit 921a4c9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/streamtide/server/graphql/authorization.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
(safe-go
(let [siwe-message (new (.-SiweMessage siwe) (clj->js (transform-keys csk/->camelCase payload)))
message (.toMessage siwe-message)
public-client (.createPublicClient viem #js {:transport (new (.-webSocket viem) (-> @config/config :web3 :url))})
public-client (.createPublicClient viem #js {:transport (new (.-http viem) (-> @config/config :siwe :url))})
isValid (<? (.verifyMessage public-client #js {:address (:address payload)
:message message
:signature signature}))]
Expand Down

0 comments on commit 921a4c9

Please sign in to comment.