Remove unused sign function.
This commit is contained in:
parent
1b117f8ce3
commit
7f94095f3e
1 changed files with 0 additions and 8 deletions
|
@ -46,12 +46,4 @@ defmodule LineBot.ValidatorPlug do
|
||||||
|> send_resp(:forbidden, "Signature Invalid")
|
|> send_resp(:forbidden, "Signature Invalid")
|
||||||
|> halt
|
|> halt
|
||||||
end
|
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
|
end
|
||||||
|
|
Loading…
Reference in a new issue