We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7a8354 commit af382ddCopy full SHA for af382dd
lib/web_push_elixir.ex
@@ -111,8 +111,8 @@ defmodule WebPushElixir do
111
vapid_public_key = url_decode(Application.get_env(:web_push_elixir, :vapid_public_key))
112
vapid_private_key = url_decode(Application.get_env(:web_push_elixir, :vapid_private_key))
113
114
- %{endpoint: endpoint, keys: %{p256dh: p256dh, auth: auth}} =
115
- Jason.decode!(subscription, keys: :atoms)
+ %{"endpoint" => endpoint, "keys" => %{"p256dh" => p256dh, "auth" => auth}} =
+ Jason.decode!(subscription)
116
117
encrypted_payload = encrypt_payload(message, p256dh, auth)
118
0 commit comments