implement auth using Auth0

This commit is contained in:
2025-12-29 23:49:23 -07:00
parent c9100383e4
commit cc74842e63
18 changed files with 797 additions and 212 deletions
@@ -1,22 +1,28 @@
<nav>
<ul>
<li>
<a href="{{ buildSitePath }}">
<a href="/">
Home
</a>
</li>
<li>
<a href="{{ buildSitePath "sign-up" }}">
<a href="/sign-up">
Sign Up
</a>
</li>
<li>
<a href="{{ buildSitePath "log-in" }}">
<a href="/login">
Log In
</a>
</li>
<li>
<a href="/logout">
Log Out
</a>
</li>
</ul>
</nav>
+3 -3
View File
@@ -3,10 +3,10 @@
<head>
<title>WIP</title>
<link rel="stylesheet" href="/site/styles/index.css">
<link rel="stylesheet" href="/styles/index.css">
<script src="/site/scripts/htmx.min.js.gz"></script>
<script src="/site/scripts/_hyperscript.min.js.gz"></script>
<script src="/scripts/htmx.min.js.gz"></script>
<script src="/scripts/_hyperscript.min.js.gz"></script>
{{/* This is where the page_head template will be inserted into the page */}}
{{- block "head" . }}{{ end }}
@@ -1,11 +1,10 @@
{{ componentBody "nav_bar" }}
<h1>Account: {{ .PathParams.acctID }}</h1>
{{- $acctID := parseInt64 .PathParams.acctID }}
{{- $acct := (.Accounts.GetAccount $acctID) }}
Email: {{ (.Accounts.GetAccount $acctID).Email }}
<h1>Account: {{ $acct.Email }} (id: {{ $acctID }})</h1>
{{- $etsyUser := .Etsy.GetUserPointerByAccountID $acctID }}
{{- if $etsyUser }}
@@ -2,4 +2,6 @@
<h1>Home</h1>
<h2><a href="sign-up">Sign Up!</a></h2>
<h2><a href="/sign-up">Sign Up!</a></h2>
<h2><a href="/test-auth">Test Auth</a></h2>
@@ -2,7 +2,7 @@
<h1>Log In</h1>
<form action="log-in" method="post">
<form action="login" method="post">
<label>
Email:
<input type="text" required name="email" />