Skip to content

Commit

Permalink
testing login some more
Browse files Browse the repository at this point in the history
  • Loading branch information
Leo Zhang committed Jun 28, 2023
1 parent d9a1f2f commit 32a55a3
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,14 @@
<h1>Vanilla JavaScript App</h1>
<p>Loading content from the API: <b id="name">...</b></p>

<a href="/.auth/login/github">Login</a>
<a href="/login">Login</a>

<a href="/.auth/logout">Log out</a>

<br />

<a href="/.auth/login/twitter">Login Twitter</a>

</main>

<script>
Expand Down
4 changes: 4 additions & 0 deletions staticwebapp.config.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@
{
"route": "/.auth/login/twitter",
"statusCode": 404
},
{
"route": "/login",
"rewrite": "/.auth/login/github"
}
]
}

0 comments on commit 32a55a3

Please sign in to comment.