Skip to content

Commit

Permalink
mix format, my best friend and my worst enemy
Browse files Browse the repository at this point in the history
  • Loading branch information
joshk committed Dec 11, 2023
1 parent 21ed661 commit d89077b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/nerves_hub_web/channels/device_socket_token_auth.ex
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@ defmodule NervesHubWeb.DeviceSocketTokenAuth do
{:ok, access_id} <- Keyword.fetch(parsed_data, :access_id),
{:ok, token_auth} <- get_product_token_auth(access_id),
{:ok, signature} <- Keyword.fetch(parsed_data, :signature),
{:ok, identifier} <- Crypto.verify(token_auth.secret, salt, signature, verification_options),
{:ok, identifier} <-
Crypto.verify(token_auth.secret, salt, signature, verification_options),
{:ok, device} <-
Devices.get_or_create_device(token_auth: token_auth, identifier: identifier) do
socket =
Expand Down

0 comments on commit d89077b

Please sign in to comment.