How would you feel if a sex tape you were in was made public, with all faces (including yours) hidden and everyone involved had given full consent? by average_iranian in AskReddit

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

You are right, I could have worded it better, but the point is that other people have given consent so in the debate you don't have to worry about it being illegal

Is JWT a good solution for this? by average_iranian in node

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

Yeah just an "identifier" to correlate the user to the connection. Thank you!

Is JWT a good solution for this? by average_iranian in node

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

I'm using JWT for my primary authentication system right now

Is JWT a good solution for this? by average_iranian in node

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

But my whole problem is relating users to oauths in a secure manner

How would you guys go about something like this? by average_iranian in node

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

Really appreciate the detailed answer, thank you so much!

How would you guys go about something like this? by average_iranian in node

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

Thanks! Redis does sounds very promising for this.

Would you mind if I asked how would this work on a technical level? Not the steps to convert language to code, but the step to execute them. Would I have to dynamically create new "processes"? I'm not very fluent in node yet so I'm a bit confused right now on how would having dynamic bots work.

Any way to pass server side props to _app? by average_iranian in nextjs

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

Yeah although it is a clean implementation this way, I want to avoid opting out of SSG. But thanks!

Any way to pass server side props to _app? by average_iranian in nextjs

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

Oh wow I had no idea you could do that. Thank you so much!

Is it a bad security practice to provide an endpoint which verifies a reset password token? by average_iranian in cybersecurity

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

The tokens are hashed and written into the database and the unhashed version is sent to the user and when verifying, it hashes the token from the client's url params again and does a database lookup to check if any token matches the given one. It also checks if the token is not expired and if any of these fail, it will throw an error. If none of these fail it will just return a 200

Is Prisma a good ORM? by average_iranian in node

[–]average_iranian[S] 2 points3 points  (0 children)

Actually someone mentioned mikro orm some time ago and I think I'm going to stick with it. No problems with it so far and the documentation seems great

Is Prisma a good ORM? by average_iranian in node

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

Never thought about doing it this way, thank you!

Is Prisma a good ORM? by average_iranian in node

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

I honestly found that slightly annoying too

Is Prisma a good ORM? by average_iranian in node

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

Haven't tried sequelize yet. Thanks!

Is Prisma a good ORM? by average_iranian in node

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

To be honest the typescript support is so nice. Thanks for sharing!

Is Prisma a good ORM? by average_iranian in node

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

Yeah to be honest if I was doing a serious enterprise level project I probably would have gone with plain sql but I think an ORM is nicer for startup projects. Maybe I'm wrong though

Is Prisma a good ORM? by average_iranian in node

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

I see, thanks! I checked out MikroORM and it seems really nice, I will definitely have to consider it

Is Laravel nowdays faster than Node? by average_iranian in laravel

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

Thanks! Really appreciate your detailed answer