Skip to content

Commit

Permalink
docs: Reflect assent's site -> base_url change.
Browse files Browse the repository at this point in the history
  • Loading branch information
jimsynz committed Nov 21, 2023
1 parent 408a28c commit 7319d29
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions documentation/tutorials/auth0-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ defmodule MyApp.Accounts.User do
client_id MyApp.Secrets
redirect_uri MyApp.Secrets
client_secret MyApp.Secrets
site MyApp.Secrets
base_url MyApp.Secrets
end
end
end
Expand Down Expand Up @@ -74,8 +74,8 @@ defmodule MyApp.Secrets do
get_config(:client_secret)
end

def secret_for([:authentication, :strategies, :auth0, :site], MyApp.Accounts.User, _) do
get_config(:site)
def secret_for([:authentication, :strategies, :auth0, :base_url], MyApp.Accounts.User, _) do
get_config(:base_url)
end

defp get_config(key) do
Expand All @@ -93,7 +93,7 @@ The values for this configuration should be:
* `redirect_uri` - the URL to the generated auth routes in your application
(eg `http://localhost:4000/auth`).
* `client_secret` the client secret copied from the Auth0 settings page.
* `site` - the "domain" value copied from the Auth0 settings page prefixed
* `base_url` - the "domain" value copied from the Auth0 settings page prefixed
with `https://` (eg `https://dev-yu30yo5y4tg2hg0y.us.auth0.com`).

Lastly, we need to add a register action to your user resource. This is defined
Expand Down
2 changes: 1 addition & 1 deletion documentation/tutorials/google-quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ defmodule MyApp.Accounts.User do
client_id "123abc..."
redirect_uri {:ok, "123abc..."}
client_secret fn -> {:ok, "123abc..."} end
site MyApp.Secrets
base_url MyApp.Secrets
end
end
end
Expand Down

0 comments on commit 7319d29

Please sign in to comment.