#Roll your own auth (still WIP)
1 messages · Page 1 of 1 (latest)
Hey, interesting project.
So when I do ‘npm ryo-auth@latest add jwt-next’, it would basically create the files mentioned in the manual setup? Is that the case? I understand it’s not supported yet.
It’s a lot of work. Isn’t it? 🤓
I have a similar idea but it expands to other features as well such as:
- Authentication
- Blog
- Documentation
- Stripe
- S3 upload
To name a few, although, adding files is one thing, you’d still need to configure things required for example for an s3 upload, you would need to create buckets and generate required policies.
correct, it is a lot of work but I feel like I can make it work, also because it's a lot of work, that's why I'm only focusing on Authentication alone.
Haha, yes. I am also getting started with Authentication.
My solution at the moment is focused on Supabase Authentication.
The idea is to generate the required files and add them to a nextjs project.
For this, I picked 3 open source projects and compared the implementation against documentation.
It gets complicated when you have to override an existing file.
I would recommend you to check out Shadcn/ui. that codebase has some neat tricks that manipulates TS files at AST level.
You can dm me if you need any help. 🙌
You can make it work. Best of luck, buddy.
yes this project is inspired by shadcn/ui and would be taking a closer look at how the CLI is built
I have written good number of articles about it.
let me share the links here:
there’s more parts under my profile, If it helps.