multinet-app / multilink

A node-link visualization built to work with the multinet ecosystem.
https://multinet.app
Apache License 2.0
4 stars 2 forks source link

Set localStorage value if the cookie exists, remove if not #346

Closed JackWilb closed 1 year ago

JackWilb commented 1 year ago

This fixes the issue from #345. The problem is that as you logout from another application, the localStorage here is not cleared out. Thus, the value of the oauth login string in the localStorage is still set to an old, expired value, and would not be set again.

To fix this, I removed the null check so that if the cookie is set, we overwrite the value, and if not, we remove the value from the localStorage.

netlify[bot] commented 1 year ago

Deploy Preview for next-multilink ready!

Name Link
Latest commit 198baaa93264b3cd857b059664fad592879d6876
Latest deploy log https://app.netlify.com/sites/next-multilink/deploys/63d457884bbe170008d4e3bc
Deploy Preview https://deploy-preview-346--next-multilink.netlify.app/
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.