mirror of
https://github.com/team-alembic/ash_authentication.git
synced 2024-09-19 21:03:23 +12:00
fix: fix failing JWT tests because of bad version regex.
This commit is contained in:
parent
6905fa069c
commit
0cd431d4d0
1 changed files with 1 additions and 1 deletions
|
@ -40,7 +40,7 @@ defmodule AshAuthentication.JwtTest do
|
|||
assert {:ok, _} = Version.parse_requirement(claims["aud"])
|
||||
assert claims["exp"] > now
|
||||
assert_in_delta(claims["iat"], now, 1.5)
|
||||
assert claims["iss"] =~ ~r/^AshAuthentication v\d\.\d\.\d$/
|
||||
assert claims["iss"] =~ ~r/^AshAuthentication v\d+\.\d+\.\d+$/
|
||||
assert claims["jti"] =~ ~r/^[0-9a-z]+$/
|
||||
assert_in_delta(claims["nbf"], now, 1.5)
|
||||
assert claims["sub"] == "user?id=#{user.id}"
|
||||
|
|
Loading…
Reference in a new issue