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 · 1 comment
Open

Authorization examples #6

troyizzle opened this issue Sep 10, 2024 · 1 comment

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

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

2 participants