jwt vs cookies in next-auth

we recommend using sessions in t3-app but i don't know why. theo says to use sessions but what are the exact reasons one would pick one over the other while using next-auth?
93 Replies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nexxel
nexxel2y ago
meant cookies]
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nexxel
nexxel2y ago
dude i really dk the technicalities lol
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
nexxel
nexxel2y ago
i mean whatever the strategies are in next-auth one is jwt, other is the thing we use in ct3a no
dan
dan2y ago
jwt vs database sessions?
Neto
Neto2y ago
next auth is using cookies
Unknown User
Unknown User2y ago
Message Not Public
Sign In & Join Server To View
Neto
Neto2y ago
jwt is just the encoding cookie is the way of transport
nexxel
nexxel2y ago
yes this
Neto
Neto2y ago
oh
nexxel
nexxel2y ago
oh
Neto
Neto2y ago
adonis uses database sessions a smaller token and such
nexxel
nexxel2y ago
but is one way better than the other?
Want results from more Discord servers?
Add your server