Skip to content

joladev/latch

Back Build URLs at runtime

Commit details

Build URLs at runtime

Description

This is a breaking change that introduces a new required parameter that dynamically returns the base URL for client_id/redirect_uri. This is motivated by how painful it is to configure Latch ATM, both for local dev where you might temporarily change your Phoenix host config, and you'd then need to rewrite the client_id/redirect_uri, but also because in most cases in production your actual host is read from the environment, at runtime. Some examples: ```elixir fn -> "https://example.com" end fn -> MyAppWeb.Endpoint.url() end fn -> System.get_env("APP_URL") end ```

Metadata

Author
Johanna Larsson johanna.a.m.larsson@gmail.com
Committed
Commit

Contributors