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,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" />