Skip to content

PhoenixKit 1.4.6: OAuth sign-in no longer depends on startup order

PhoenixKit 1.4.6 fixes a crash when signing in with an OAuth provider. If your app’s endpoint started before PhoenixKit’s supervisor, the provider settings were not loaded yet, and opening /phoenix_kit/users/auth/google failed with a MatchError from Ueberauth.

PhoenixKit now loads the OAuth settings as the first step of its supervisor. As a fallback, a plug loads them on the request if they are still missing, and answers with an “OAuth Service Unavailable” page (503) if that fails. Saving a provider’s credentials now also switches that provider on. Turning off the Maintenance module now also ends maintenance mode, so visitors are not left locked out.

 

 


PhoenixKit 1.4.6. Install or update: {:phoenix_kit, "~> 1.4"}, then mix deps.get && mix phoenix_kit.update. Full history: CHANGELOG.