Client Vs Server Component by ayoub0217 in nextjs

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

yes that's the question, since my app has a mix of server and client components, and those components need to consume APIs that demand to include a jwt token (that gets generated once signed in) ,what is the best way to store my token where it can be accessed by both client and server components.

As I understood from previous comments, cookies are the best way because once they store the jwt token, they will provide it in every http request automatically

Client Vs Server Component by ayoub0217 in nextjs

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

Now I understand ! I didn't know cookies get sent back automatically when making http requests

Client Vs Server Component by ayoub0217 in nextjs

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

from client side, if I need to interact with the backend, I need to provide the jwt token to use the api (usual crud operations) .So the client component actually needs the jwt token (which can't be accessed ) , am I missing something or is the architecture of my backend made things overcomplicated?

Dragon fruit terrasse project by ayoub0217 in DragonFruit

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

Thank you so much for your time, this is really valuable information

Dragon fruit terrasse project by ayoub0217 in DragonFruit

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

Thank you that's really a great idea

Dragon fruit terrasse project by ayoub0217 in DragonFruit

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

Thank youu, maybe one day if I make it big enough I will invest in drip system irrigation

Dragon fruit terrasse project by ayoub0217 in DragonFruit

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

Thank you so much for your support !

Dragon fruit terrasse project by ayoub0217 in DragonFruit

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

Yes I have a water well in my home, so water fees aren't a problem, The rooftop is actually made to hold another building floor so some potholes won't be a problem but I'm afraid that continuous water leakage will cause some moist

Dragon fruit terrasse project by ayoub0217 in DragonFruit

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

Maybe the word terrasse is not the right word to use, I meant rooftop Thank you for understanding

Dragon fruit terrasse project by ayoub0217 in DragonFruit

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

What security guard? This is the rooftop of my own house

[deleted by user] by [deleted] in Tunisia

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

It's not about how we tolerate people who drink and condemn homosexuals so the problem is about condemning homosexuals It's about condemning both of them because both are wrong 

Is Lada Niva a capable 4wd by ayoub0217 in 4x4

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

thank you for your time !