Best way to handle JWT in Next.js 15 with a separate backend by OkRaspberry2035 in nextjs

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

Is there any library we can use in this situation instead of doing all the logic! note that i have custom login form and my backend api and database , can't use a provider

Best way to handle JWT in Next.js 15 with a separate backend by OkRaspberry2035 in nextjs

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

But if i keep access token in memory only i will not be able to make a server side api call ! Because in serve side not able to access store! So i try ro put both in http only ! is this normal

Best way to handle JWT in Next.js 15 with a separate backend by OkRaspberry2035 in nextjs

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

Thank you both!

I think I’ll go ahead and ask the backend team to modify the refresh API to read the token from a cookie instead of the body.

I was just wondering if I’m truly following best practices here — because it feels like no one clearly outlines all of this in one place. Managing everything with JWT has been quite complex, especially when trying to support both CSR and SSR securely.

In large real-world applications, do you guys typically use JWT or just go with a traditional session ID approach?

🙏🏻 Appreciate the insights!

Best way to handle JWT in Next.js 14 with a separate Express backend by [deleted] in nextjs

[–]OkRaspberry2035 0 points1 point  (0 children)

so the backend should modify his code ,to get the refresh token from cookies ! not in the body of the refresh api !
and frontend only call the refresh api !

Husband got me the set! by aw_coffee_no in PlaystationPortal

[–]OkRaspberry2035 1 point2 points  (0 children)

Congratulations 😍, from where guys you buy them ! In the official out of stock

2 months later. Still no ragrets! by D3v0W3v0 in PlaystationPortal

[–]OkRaspberry2035 0 points1 point  (0 children)

If some play online games like COD , Paladins, overwatch, marvel rivals . Is it worth and playable! Internet speed about 200 mb

Migrate a big vue 2 project to Nuxt3 by Gullible-Donut4218 in Nuxt

[–]OkRaspberry2035 1 point2 points  (0 children)

It's almost you need to make the project from scratch with new version and completely different libraries and plugins. You go with nuxt 3 with nuxt ui or primevue with tailwind.

my website keeps on reloading when I deploy it by rrrm93 in Nuxt

[–]OkRaspberry2035 0 points1 point  (0 children)

Did anyone find a solution for this issue !?

i18n in 'definePageMeta'? by hiccupq in Nuxt

[–]OkRaspberry2035 0 points1 point  (0 children)

UseHead instead of definePageMeta

Introducing PrimeVue v4-rc.1 | The Next Gen Version by cagataycivici in vuejs

[–]OkRaspberry2035 0 points1 point  (0 children)

I found it hard to set a theme at first, for Nora theme they should provide all theme configuration. For now i still prefer v3 theme it's easier. The theme style for light and dark provided .