By using the Guardian.Phoenix.Controller module, your actions will receive two additional arguments that you can pattern match on. Remember, if you didn’t use EnsureAuthenticated you may have a nil user and claims.