From 8d584030f6e1f84b3da48d077f06d61fe8baacfa Mon Sep 17 00:00:00 2001 From: James Harton Date: Tue, 14 May 2024 15:04:08 +1200 Subject: [PATCH] fix: bug in tokens required verifier. --- lib/ash_authentication/verifier.ex | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/ash_authentication/verifier.ex b/lib/ash_authentication/verifier.ex index 983b7b0..82fb8f8 100644 --- a/lib/ash_authentication/verifier.ex +++ b/lib/ash_authentication/verifier.ex @@ -80,7 +80,7 @@ defmodule AshAuthentication.Verifier do )} {[password | _], false} - when is_struct(password, Password) and is_map(password.sign_in_tokens_enabled?) -> + when is_struct(password, Password) and password.sign_in_tokens_enabled? -> {:error, DslError.exception( path: [:authentication, :tokens, :enabled?],