diff --git a/CHANGELOG.md b/CHANGELOG.md index b1779342..71d81c9f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- If no client is defined, application doesn't fail to start + --- ## [0.6.2] - 2023-08-25 diff --git a/lib/prima_auth0_ex/application.ex b/lib/prima_auth0_ex/application.ex index f399530d..62893ede 100644 --- a/lib/prima_auth0_ex/application.ex +++ b/lib/prima_auth0_ex/application.ex @@ -22,12 +22,6 @@ defmodule PrimaAuth0Ex.Application do end defp client_children do - if Config.default_client() do - [ - {TokenProvider, credentials: PrimaAuth0Ex.Auth0Credentials.from_env(), name: :default_client} - ] - end - if Config.clients() do Config.clients() |> Keyword.keys() @@ -40,6 +34,8 @@ defmodule PrimaAuth0Ex.Application do | acc ] end) + else + [] end end