Comments (2)
엑세스 토큰을 메모리에 저장하면, 사용자가 여러 탭을 사용 중일 때 한 탭에서 로그아웃을 하면 다른 탭에서도 로그아웃이 되나요?
from blog.
실제로 로그아웃 로직을 구현하는 방법에 따라 달라지겠지만, 다른 탭에서 로그아웃 해도 메모리상에 액세스 토큰은 그대로 남아있겠네요! 😮
따라서 로그아웃 요청에 따라서 토큰을 만료시키는 특정 로직이 수행되는 것이 아니라면, 다른 탭에서는 로그인 상태가 유지될 것 같습니다.
추가적으로 글을 작성했을 땐 토큰의 관리 방법을 단정 지어서 결론을 냈었는데,
보안 정책이나 상황에 따라서 구현 방법은 충분히 달라질 수 있을 것 같습니다!!
(예를 들어, SameSite 속성을 Lax나 Strict로 줬을 때 도메인이 다른 사이트 간의 요청에는 쿠키를 사용할 수 없다.. 라는 상황?)
좋은 포인트 감사합니다 😊😊
from blog.
Related Issues (13)
- array/
- variable/ HOT 1
- devcourse-month1/ HOT 2
- devcourse-month2/ HOT 1
- movue-searcher/ HOT 1
- express/ HOT 1
- devcourse-month4/ HOT 1
- react-jsx/ HOT 1
- webpack-webpack/ HOT 1
- state-management-and-observer/ HOT 2
- msw/ HOT 1
- react-hook-form/ HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from blog.