Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authorization examples #6

Open
troyizzle opened this issue Sep 10, 2024 · 2 comments
Open

Authorization examples #6

troyizzle opened this issue Sep 10, 2024 · 2 comments

Comments

@troyizzle
Copy link
Contributor

This may come with documentation but it would be useful to include some authorization examples I am currently struggling on how to include authorization with this stack, its probably a skill issue as I am unfamiliar with hono.

Has anyone incorporated anything yet?

I've tried using Clerk and Authjs and using these middlewares

https://github.com/honojs/middleware/tree/main/packages/auth-js
https://github.com/honojs/middleware/tree/main/packages/clerk-auth

I've also tried sending across the credentials in the hono cors and on the fetch itself

@adelrodriguez
Copy link

I think Lucia would be a great choice for this stack, since it's easily to implement for both Hono and Next.js: https://lucia-auth.com/guides/validate-session-cookies/hono

@KobeBerv
Copy link

KobeBerv commented Dec 9, 2024

I think Lucia would be a great choice for this stack, since it's easily to implement for both Hono and Next.js: https://lucia-auth.com/guides/validate-session-cookies/hono

The Lucia Auth Library v3 will be deprecated by March 2025, as Lucia shifts its focus to becoming a learning resource for building authentication systems from scratch.

If you’re looking for ongoing support and access to new features, I highly recommend exploring Better-Auth. This robust and actively maintained authentication solution, with its recent stable release, offers a alternative to Lucia.

https://github.com/better-auth/better-auth

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants