Modern Development With TypeScript tutorial: How to persist auth between session?

I am following the tutorial Modern Full-Stack Development with Nest.js, React, TypeScript, and MongoDB: Part 2 and I manage to do everything I want except that there is no persistence of authentication between session.

Could someone explain to me how I add persistence using the auth–context.tsx from the tutorial?

Thank you very much in advance for the help!

Ok, found it, in config, you just need:

  cacheLocation: 'localstorage'
1 Like

Perfect, glad you have it working!

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.