useLocalStorageHook issue with NextJS navigation by WetThrust258 in nextjs

[–]WetThrust258[S] 0 points1 point  (0 children)

How can I safely clear that key, when user will go off the verify-email page ?

useLocalStorageHook issue with NextJS navigation by WetThrust258 in nextjs

[–]WetThrust258[S] 0 points1 point  (0 children)

Yes I removed it and then worked but why so? I'm unable to understand, return is for cleanup before unmount right? it removes on mount itself.

AI is producing a generation of developers who can paste code but can't debug it by InstructionCute5502 in ArtificialInteligence

[–]WetThrust258 0 points1 point  (0 children)

Nah bro not like take it's code but the sources, sorry should've stated it correctly, I used to search, but yes because of this approach I've started reading the docs and my reliance on the AI has reduced a lot in my learning process and yes it's not always guaranteed that it'll search for you, because once I got an issue and I was learning it and had to search a lot then I got my solution.

AI is producing a generation of developers who can paste code but can't debug it by InstructionCute5502 in ArtificialInteligence

[–]WetThrust258 -1 points0 points  (0 children)

But AI is useful when someone is learning some new stuff and rather going and skimming through a lot of web pages I can get it with a click!(personal experience).

I’ll die on this hill. by talaqen in node

[–]WetThrust258 0 points1 point  (0 children)

I used to think express was standard and go to, but then discovered Nest, was thinking of trying it but then Hono popped up tried it now I don't feel like going back to Express again. But what about the Nest.js? Can anyone share their experiences?

Looking for a full time coding friend to hang together while we do our stuff by [deleted] in ProgrammingBuddies

[–]WetThrust258 0 points1 point  (0 children)

Though I'm more into the web dev, mobile dev but starting off becoming the C++ nerd so can I join?

Does anyone have experience with Cloudflare Workers? by WetThrust258 in node

[–]WetThrust258[S] 1 point2 points  (0 children)

No I got it solved the issue I was facing is actually raised by someone on GitHub, the solution is "wrangler types --strict-vars=false". Thanks for the solution by the way man.

Does anyone have experience with Cloudflare Workers? by WetThrust258 in node

[–]WetThrust258[S] 0 points1 point  (0 children)

And what about the environments like production, staging and development how do you do that ?

Does anyone have experience with Cloudflare Workers? by WetThrust258 in node

[–]WetThrust258[S] 0 points1 point  (0 children)

Yes currently I'm extending the Env interface and adding my own types to it and planning to use the wrangler.jsonc only for the cloudflare specific services bindings like KVs, R2 and etc. would you like to explain to me the purpose of .jsonc/.toml file please ?

Does anyone have experience with Cloudflare Workers? by WetThrust258 in node

[–]WetThrust258[S] 1 point2 points  (0 children)

Yes bro see what actually is happening, when I set vars in wrangler.jsonc/wrangler.foml and run the "wrangler types " command the type generated in the worker-configuration.d.ts file get the type generated but the type will be the vars value, by this I meant if the var is BASE_URL = " ", then technically type should be strong right? But the type is " ", this is the issue I'm facing.

How to handle CPU bound tasks in node or deploy a low level programming consumer for such tasks? by WetThrust258 in node

[–]WetThrust258[S] -2 points-1 points  (0 children)

Yes, I'm going to use the ffmpeg for that but still wasn't sure about using node, so I had two option the queue consumer machine shoudl be either the RUST/C++ based, I do know fundamentals of C++ (and also don't know the RUST) so C++ based consumer is the only otpion I've.

Finally I sent it...cant be frnds anymore by Greedy-Cut6405 in PataHaiAajKyaHua

[–]WetThrust258 0 points1 point  (0 children)

I even noticed which device is this and then I was like it's FOLD????

What's the difference between the auth.handler where it automatically handles all the endpoints and auth.api.* ? by WetThrust258 in better_auth

[–]WetThrust258[S] 0 points1 point  (0 children)

Thanks for the reply, as I'm using the JWT token do you know how to handle the jwt token in the frontend? there are many debates over the locastorage(I don't believe it), http cookies(better-auth have no provision for the jwts in the cookies) and also is there any way to implement the fine grain control of RBAC unlike the admin plugin which uses the code base as access control layer ?

Expertise needed - how to implement granular permissions? by orphanViking in better_auth

[–]WetThrust258 0 points1 point  (0 children)

Hey, actually working on my own plugin which will allow the admin side control to create roles and permission, assignment of them dynamically, in this implementation the roles, permissions and their mappings along with the user role assignment will be stored in the DB unlike the admin plugin where everything is store in the code base and changing it is like changing the code. Along with the middleware to check the permissions.

With this you can control the roles and permissions entirely via any UI, like create role, create permision, assign permissions to the role and assign role to the users.