diff --git a/CHANGELOG.md b/CHANGELOG.md index 944fcb2..51d40ca 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,7 +2,7 @@ ## v0.5.0 (2026-08-02) - * Breaking change: `client_id` and `redirect_uri` are replaced with `client_id_path`, `redirect_uri_path`, and `base_url_fun`, with the latter dynamically building the base URL, eg `fn -> MyAppWeb.Endpoint.url() end`. + * Breaking change: `client_id` and `redirect_uri` are replaced with `client_id_path`, `redirect_uri_path`, and `base_url_fun`, with the latter dynamically building the base URL, eg `&MyAppWeb.Endpoint.url/0`. ## v0.4.0 (2026-08-01) diff --git a/README.md b/README.md index 0c16d02..27fcd3b 100644 --- a/README.md +++ b/README.md @@ -47,7 +47,7 @@ Add `Latch` to your supervision tree, giving it a unique name and a `Latch.Store client_id_path: "/oauth-client-metadata.json", redirect_uri_path: "/auth/callback", # Dynamically resolve the base URL at runtime, or pass a hard-coded URL - base_url_fun: fn -> MyApp.Endpoint.url() end, + base_url_fun: &MyApp.Endpoint.url/0, scope: "atproto", signing_key: System.fetch_env!("ATPROTO_CLIENT_PRIVATE_JWK")} ]