Git Product home page Git Product logo

Comments (2)

dyless0811 avatar dyless0811 commented on June 30, 2024 1

엑세스 토큰을 메모리에 저장하면, 사용자가 여러 탭을 사용 중일 때 한 탭에서 로그아웃을 하면 다른 탭에서도 로그아웃이 되나요?

from blog.

bbearcookie avatar bbearcookie commented on June 30, 2024

@dyless0811

실제로 로그아웃 로직을 구현하는 방법에 따라 달라지겠지만, 다른 탭에서 로그아웃 해도 메모리상에 액세스 토큰은 그대로 남아있겠네요! 😮
따라서 로그아웃 요청에 따라서 토큰을 만료시키는 특정 로직이 수행되는 것이 아니라면, 다른 탭에서는 로그인 상태가 유지될 것 같습니다.

추가적으로 글을 작성했을 땐 토큰의 관리 방법을 단정 지어서 결론을 냈었는데,
보안 정책이나 상황에 따라서 구현 방법은 충분히 달라질 수 있을 것 같습니다!!
(예를 들어, SameSite 속성을 Lax나 Strict로 줬을 때 도메인이 다른 사이트 간의 요청에는 쿠키를 사용할 수 없다.. 라는 상황?)

좋은 포인트 감사합니다 😊😊

from blog.

Related Issues (13)

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.