Code Monkey home page Code Monkey logo

Comments (2)

siyooonkim avatar siyooonkim commented on August 20, 2024

특이사항

  • Access Token 자동 갱신(80% 진행)
  • moment.js => day.js 변경
  • axiosConfig 파일에 axios default configuration과 함께 적용
  • getExplore actions에 테스트 적용한 상태 ( _axios )

Check Point

  • 로그인 성공시 Cookie에서 refreshToken을 확인 수 없음
  • 이후 토큰갱신 요청시에도 refreshToken을 별도로 보내지 않기 때문에, 401 에러 반환 => 로그아웃처리
  • 유빈님 시간 될때 확인 필요

from re-collect-client.

siyooonkim avatar siyooonkim commented on August 20, 2024
  • 기존 로직 : 로그인 성공 => getBookmark요청 (CollectPage)
  • getBookmark요청시 axiosConfig에서 했던 설정이 적용됨 (토큰 자동갱신)
  • 토큰 자동갱신 요청시에는 cookie에 있는 refreshToken을 함께 보내야함
  • 하지만, 최초 로그인 성공시 Cookie에서 refreshToken을 확인 수 없음
  • 이후 토큰갱신 요청시에도 refreshToken을 별도로 보내지 않기 때문에, 401 에러 반환
  • catch문에서 로그아웃처리

저희도 refreshToken을 쿠키에서 확인할수 없는 이유를 찾아보면 좋을 것 같습니다.
그리고 유빈님 여유 생기실때 함께 확인해보면 좋을것같습니다.
refreshToken문제가 해결되기 전까지,
axiosConfig파일에서 자동갱신 부분은 임시적으로 주석처리하고 진행하면 좋을것 같네요

from re-collect-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.