denoland / fresh

The next-gen web framework.
https://fresh.deno.dev
MIT License
12.26k stars 628 forks source link

Docs: Add auth section #1612

Open marvinhagemeister opened 1 year ago

marvinhagemeister commented 1 year ago

Like the title says a basic example for auth would be nice to have in the docs

mcgear commented 1 year ago

Bringing in this blog for context as well on the docs story: https://deno.com/blog/setup-auth-with-fresh

I am actually in the middle of trying to implement some auth work with our Deno projects, and are looking into a Clerk integration.

What did you have in mind for the auth section? As i started trying to write something out on my own, with no real auth concept in fresh, should we just be targeting some chosen "best" solutions? Clerk, Auth0...

Should there be a look at what we can do to provide hooks for implementing authentication and authorization making the development of various auth solutions more similar?

I opened PR #1616 to make it easy to see the proposed docs changes.

mcgear commented 1 year ago

In an effort to further simplify integration with Deno KV Auth, we have started a project we are using for a plugin for this. Certainly could use some more eyes to see how we could build it up more. Let me know if this is worth while tucking somewhere into the docs.

Tseberechts commented 1 year ago

Any luck with the Clerk integration? I'd really like to have this, but can't seem to get it working.