Repository navigation
Replies: 2 comments 1 reply
|
fastHTML automatically comes with a basic authmw.py and you can see that example in their fasthtml-example repo. I've also implemented a fastHTML based webapp starter here: https://github.com/Karthik777/lego . It comes with registration via email and google and GitHub Oauth. I'm almost done with my next version upgrade with schedulers, hetzner cloud hosting and carefully picked themes, js state management for nifty UI things. |
|
You could try UserHarbor. It’s framework agnostic and supports registration, email verification, login, sessions, and password resets. With a @app.post("/register")
def register(username: str, email: str, password: str):
harbor.register(username=username, email=email, password=password)
return P("Check your email to verify your account.")
@app.get("/verify")
def verify(token: str):
harbor.verify_email(token)
return P("Email verified! You can now log in.")
@app.post("/login")
def login(username: str, password: str, session):
session["token"] = harbor.login(username=username, password=password)
return RedirectResponse("/", status_code=303)Then use |
Uh oh!
There was an error while loading. Please reload this page.
Hi all!
I am discovering FastHTML and I really enjoy it! It could really simplify my current stack for my side projects (Django + HTMX).
I am looking for an authentication library that would play well with FastHTML, with email registration and validation.
Does anyone have any experience to share on that?
Thanks a lot, and congrats to the devs on this nice project!
All reactions