Search documentation of phoenix_kit

# PhoenixKit.Config.EndpointUrlSync (phoenix_kit v1.7.87)

Copy Markdown View Source

Syncs the `site_url` from PhoenixKit settings to the parent Phoenix Endpoint's `:url` configuration.

This ensures `Endpoint.url()` returns the correct public URL, which is critical for OAuth callback URLs generated by Ueberauth.

Opt-in via `config :phoenix_kit, sync_site_url_to_endpoint: true`.

## Summary

### Functions

sync()

Syncs `site_url` from settings to the parent Endpoint's `:url` config.

## Functions

# sync()

    @spec sync() :: :ok

Syncs `site_url` from settings to the parent Endpoint's `:url` config.

No-op when `sync_site_url_to_endpoint` is `false` (the default), when `site_url` is empty, or when the parent endpoint cannot be resolved.