Remove unused sign function.

This commit is contained in:
Adam Millerchip 2019-09-05 00:37:46 +09:00
parent 1b117f8ce3
commit 7f94095f3e
1 changed files with 0 additions and 8 deletions

View File

@ -46,12 +46,4 @@ defmodule LineBot.ValidatorPlug do
|> send_resp(:forbidden, "Signature Invalid")
|> halt
end
@doc """
A helper for local debugging. Produces a valid signature for the supplied `body`,
which can be used in the `X-Line-Signature` header.
"""
def sign(body) do
:crypto.hmac(:sha256, Application.get_env(:line_bot, :client_secret), body) |> Base.encode64()
end
end