Relative Content

Tag Archive for mongodbauthenticationnext.jscookiesjwt

Different cookie expiration times

I’m currently learning NextJS and learning topics related to user authorization. They are save in the MongoDB database. By default, when trying to log in, if the user exists, I use the createSession function to save the session in his cookies. However, I’m having trouble with the expiration time and I’m seeing some contradictions.