Skip to content

Commit

Permalink
Allow latest plug_crypto
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Oct 6, 2023
1 parent 09c6bc4 commit 4b19e58
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 9 deletions.
6 changes: 3 additions & 3 deletions mix.exs
Original file line number Diff line number Diff line change
Expand Up @@ -71,14 +71,14 @@ defmodule Phoenix.MixProject do
defp deps do
[
{:plug, "~> 1.14"},
{:plug_crypto, "~> 1.2"},
{:plug_crypto, "~> 1.2 or ~> 2.0"},
{:telemetry, "~> 0.4 or ~> 1.0"},
{:phoenix_pubsub, "~> 2.1"},
# TODO drop phoenix_view as an optional dependency in Phoenix v2.0
{:phoenix_view, "~> 2.0", optional: true},
{:phoenix_template, "~> 1.0"},
{:websock_adapter, "~> 0.5.3"},

# TODO drop phoenix_view as an optional dependency in Phoenix v2.0
{:phoenix_view, "~> 2.0", optional: true},
# TODO drop castore when we require OTP 25+
{:castore, ">= 0.0.0"},

Expand Down
6 changes: 0 additions & 6 deletions test/phoenix/token_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -90,12 +90,6 @@ defmodule Phoenix.TokenTest do
assert signed1 != signed2
end

test "passes key_length options to key generator" do
signed1 = Token.sign(conn(), "id", 1, signed_at: 0, key_length: 16)
signed2 = Token.sign(conn(), "id", 1, signed_at: 0, key_length: 32)
assert signed1 != signed2
end

test "key defaults" do
signed1 = Token.sign(conn(), "id", 1, signed_at: 0)

Expand Down

0 comments on commit 4b19e58

Please sign in to comment.