Next Auth
Answered
Bengal posted this in #help-forum
BengalOP
Hey guys, is it normal for next auth v5 to show raw jwt token data in random api call /auth/session in the console? Thanks
Answered by B33fb0n3
thanks for sharing. This a an normal response from the api. You sending some data with it and the server responses with some other data. Normal http traffic
8 Replies
@Bengal Hey guys, is it normal for next auth v5 to show raw jwt token data in random api call /auth/session in the console? Thanks
you might want to search though your project where you used a logging function like
console.log() so you can find the specific location where you log the data. If it's serverside it's should be automatically encryptedBengalOP
Thanks for the response. I’m not logging the data. i noticed the raw response data in random api calls to api/auth/session
can you show how it looks like inside the console?
BengalOP
It’s only exposed to logged in users. JWT is encrypted as expected and secured
@Bengal It’s only exposed to logged in users. JWT is encrypted as expected and secured
thanks for sharing. This a an normal response from the api. You sending some data with it and the server responses with some other data. Normal http traffic
Answer
BengalOP
Oh okay. I’m new to next auth. My initial thought was since I’m using useSession (client) and I’m not making the random api call maybe thats how server feeds the client with the session data
Thank you
happy to help