Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 [BUG] - avatar appears if you leave the page and revisit after a while. #83

Closed
bentshrimp opened this issue Oct 5, 2023 · 0 comments · Fixed by #93
Closed

🐛 [BUG] - avatar appears if you leave the page and revisit after a while. #83

bentshrimp opened this issue Oct 5, 2023 · 0 comments · Fixed by #93
Assignees
Labels
bug Something isn't working

Comments

@bentshrimp
Copy link
Contributor

Browsers

Chrome

OS

Linux

Description

User profile image, called "avatar" still appears when you revisit after leaving the site without logout.

Reproduction URL

https://staging--open-set-go.netlify.app/

Reproduction Steps

Log in the page, and wait until the cookie expires.

Then revisit. You will be able to still see your avatar on the right top corner.

Solutions

Every time the user log in, his information is saved in local storage on the brower.

1. Check if the brower has valid token.
2. If it doesn't, remove user information saved in local storage.

Screenshots

![DESCRIPTION](LINK.png)
@bentshrimp bentshrimp added the bug Something isn't working label Oct 5, 2023
@bentshrimp bentshrimp self-assigned this Oct 5, 2023
bentshrimp added a commit that referenced this issue Oct 5, 2023
- correct the icon src
- remove user info every time user revisit after automatic loggout

Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>
bentshrimp added a commit that referenced this issue Oct 6, 2023
Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>
@bentshrimp bentshrimp linked a pull request Oct 6, 2023 that will close this issue
11 tasks
bentshrimp added a commit that referenced this issue Oct 6, 2023
Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>
@bentshrimp bentshrimp reopened this Oct 6, 2023
bentshrimp added a commit that referenced this issue Oct 6, 2023
Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>
bentshrimp added a commit that referenced this issue Oct 6, 2023
Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>
bentshrimp added a commit that referenced this issue Oct 6, 2023
Fix : manage login state only in Header #83
ymw0407 added a commit that referenced this issue Oct 7, 2023
* Feat : add meta data #65

Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>

* Bump @adobe/css-tools from 4.2.0 to 4.3.1

Bumps [@adobe/css-tools](https://github.com/adobe/css-tools) from 4.2.0 to 4.3.1.
- [Changelog](https://github.com/adobe/css-tools/blob/main/History.md)
- [Commits](https://github.com/adobe/css-tools/commits)

---
updated-dependencies:
- dependency-name: "@adobe/css-tools"
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>

* Fix : Security Priblem occured by nth-check resolved at #71

Signed-off-by: ymw0407 <yunminwo1211@gmail.com>

* Update : rename title from "Open Set Go" to "Open-Set-Go" #65

Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>

* Update : manifest.json updated with proper icon images #65

Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>

* Remove : unnecessary file, favicon.svg removed #65

Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>

* Fix : icon size setting fixed #65

Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>

* Chore : remove .vscode

Signed-off-by: Yun Min Woo <yunminwo1211@gmail.com>

* Add : _redirects for netlify CD

Signed-off-by: Yun Min Woo <yunminwo1211@gmail.com>

* Fix : Improving cookie handling tech #78

- need to improve handling cookie at refreshing main page

* Fix : vulnerability alert resolved  #77

- https://github.com/AgainIoT/Open-Set-Go_client/security/dependabot/3

Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>

* Fix : MainPage isLogin state works well  #78

Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>

* Fix : changed unnecessary if-else into single return statement #78

Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>

* update staging branch (#81)

* Fix : Improving cookie handling tech #78

- need to improve handling cookie at refreshing main page

* Fix : vulnerability alert resolved  #77

- https://github.com/AgainIoT/Open-Set-Go_client/security/dependabot/3

Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>

* Fix : MainPage isLogin state works well  #78

Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>

* Fix : changed unnecessary if-else into single return statement #78

Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>

---------

Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>
Co-authored-by: ymw0407 <yunminwo1211@gmail.com>

* Fix : remove user info in local storage  #83

- correct the icon src
- remove user info every time user revisit after automatic loggout

Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>

* Add : add react script 'yarn start:win' & 'yarn start:linux' #85

* Feat : Security Policy Updated #87

Signed-off-by: Yun Min Woo <yunminwo1211@gmail.com>

* Fix : blog -> docs, docs domain changed #88

* Fix : Logo.svg changed to logo.svg(typo error)

Co-authored-by : bent_shrimp <bent_shrimp@kookmin.ac.kr>

Signed-off-by: Yun Min Woo <yunminwo1211@gmail.com>

* Fix : render profile image when only login #83

Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>

* Chore : remove unnecessary import #83

Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>

* Revert "Unexpected bugs fixed"

* Fix : manage login state only in Header #83

Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>

* Chore : remove unused state variable #83

Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>

* Correct old docs url (#100)

Fix : old docs url corrected #98

Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>
Co-authored-by: Yun Min Woo <yunminwo1211@gmail.com>

---------

Signed-off-by: bentshrimp <bent_shrimp@kookmin.ac.kr>
Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: ymw0407 <yunminwo1211@gmail.com>
Signed-off-by: Yun Min Woo <yunminwo1211@gmail.com>
Co-authored-by: bentshrimp <bent_shrimp@kookmin.ac.kr>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: bent_shrimp <39232867+bentshrimp@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant