diff --git a/lib/ash_authentication/sender.ex b/lib/ash_authentication/sender.ex index 52960d8e..f986d955 100644 --- a/lib/ash_authentication/sender.ex +++ b/lib/ash_authentication/sender.ex @@ -85,10 +85,10 @@ defmodule AshAuthentication.Sender do @doc """ Sending callback. - This function will be called with the user, the token and any options passed + This function will be called with a value representing a user, the token and any options passed to the module in the DSL. """ - @callback send(user :: Resource.record(), token :: String.t(), opts :: list) :: :ok + @callback send(user :: Resource.record() | String.t(), token :: String.t(), opts :: list) :: :ok @doc false @spec __using__(any) :: Macro.t()