세션이 짧게 유지되고 '로그인 유지'가 동작하지 않던 문제 수정. 원인1(프론트): 401 자동 refresh 가 '/auth/' 포함 URL을 모두 제외해, 부트스트랩 /auth/me 가 access 만료(15분)로 401 이어도 refresh 를 시도하지 않아 새로고침/재방문 시 로그아웃됨. - useApi 인터셉터: refresh-재시도 제외 대상을 /auth/refresh·/auth/login 으로만 한정 → /auth/me 등은 access 만료 시 refresh 후 재시도되어 세션 복원 원인2(백엔드): keepLogin 값이 무시되어 쿠키 영속 여부에 반영되지 않음. - RefreshSession 에 persistent 플래그 추가(마이그레이션, default true) - 로그인 시 keepLogin 저장, refresh 회전 시에도 그대로 유지 - setAuthCookies: persistent=true 면 maxAge(영속), false 면 세션 쿠키 - 소셜 로그인은 체크박스가 없어 영속(true) 기본 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
A progressive Node.js framework for building efficient and scalable server-side applications.
Description
Nest framework TypeScript starter repository.
Project setup
$ npm install
Compile and run the project
# development
$ npm run start
# watch mode
$ npm run start:dev
# production mode
$ npm run start:prod
Run tests
# unit tests
$ npm run test
# e2e tests
$ npm run test:e2e
# test coverage
$ npm run test:cov
Deployment
When you're ready to deploy your NestJS application to production, there are some key steps you can take to ensure it runs as efficiently as possible. Check out the deployment documentation for more information.
If you are looking for a cloud-based platform to deploy your NestJS application, check out Mau, our official platform for deploying NestJS applications on AWS. Mau makes deployment straightforward and fast, requiring just a few simple steps:
$ npm install -g @nestjs/mau
$ mau deploy
With Mau, you can deploy your application in just a few clicks, allowing you to focus on building features rather than managing infrastructure.
Resources
Check out a few resources that may come in handy when working with NestJS:
- Visit the NestJS Documentation to learn more about the framework.
- For questions and support, please visit our Discord channel.
- To dive deeper and get more hands-on experience, check out our official video courses.
- Deploy your application to AWS with the help of NestJS Mau in just a few clicks.
- Visualize your application graph and interact with the NestJS application in real-time using NestJS Devtools.
- Need help with your project (part-time to full-time)? Check out our official enterprise support.
- To stay in the loop and get updates, follow us on X and LinkedIn.
- Looking for a job, or have a job to offer? Check out our official Jobs board.
Support
Nest is an MIT-licensed open source project. It can grow thanks to the sponsors and support by the amazing backers. If you'd like to join them, please read more here.
Stay in touch
- Author - Kamil Myśliwiec
- Website - https://nestjs.com
- Twitter - @nestframework
License
Nest is MIT licensed.