From 4fa73ef3f11995cf148fce39d314ba6e0acdd74b Mon Sep 17 00:00:00 2001 From: Grant Zukowski Date: Fri, 17 Oct 2025 12:05:29 -0500 Subject: [PATCH 1/2] docs: :bug: Update instructions for accuracy I noticed that some of these instructions didn't work when copied and pasted. Also using the HTTPoisonMock wasn't super obvious. --- demo/README.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/demo/README.md b/demo/README.md index 3951ea2..bbe9e54 100644 --- a/demo/README.md +++ b/demo/README.md @@ -112,7 +112,7 @@ export MICROSOFT_CLIENT_SECRET=rDq8Q~.uc-237FryAt-lGu7G1sQkKR export MICROSOFT_CLIENT_ID=a3d22eeb-85aa-4650-8ee8-3383931 ``` -> ⚠️ Don't worry, these keys aren't valid. +> ⚠️ Don't worry, these values aren't valid. They are just here for illustration purposes. ## 3. Create 2 New Files ➕ @@ -444,9 +444,8 @@ Open the file and add the following function: def logout(conn, _params) do # Clears token from user session - conn = conn |> delete_session(:token) - conn + |> delete_session(:token) |> redirect(to: "/") end ``` @@ -466,7 +465,7 @@ Inside `lib/app_web/templates/page/welcome.html.heex`, add the button. ```html - + ``` From 1efc6b275dc76cad52a790f9e0dac9c0689f70c5 Mon Sep 17 00:00:00 2001 From: Grant Zukowski Date: Fri, 17 Oct 2025 18:24:31 -0500 Subject: [PATCH 2/2] docs: :bug: Update callback documentation to reflect Microsoft Auth API --- demo/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/demo/README.md b/demo/README.md index bbe9e54..dce0602 100644 --- a/demo/README.md +++ b/demo/README.md @@ -135,7 +135,7 @@ defmodule AppWeb.MicrosoftAuthController do use AppWeb, :controller @doc """ - `index/2` handles the callback from Google Auth API redirect. + `index/2` handles the callback from Microsoft Auth API redirect. """ def index(conn, %{"code" => code, "state" => state}) do