brazil-data-cube / forest-monitor-app

MIT License
3 stars 2 forks source link

Change localStorage user login key variable #46

Closed claudiobogossian closed 4 years ago

claudiobogossian commented 4 years ago

When using 2 different instances of the forest-monitor front-end in the same browser session, the user login info is overwritten by the second login information. The best solution for this problema is changing the localStorage key (now is 'user') to 'user_APP_NAME'. The APP_NAME variable is the same that is used for oauth. (eg. 'user_forest-monitor-ibama', 'user_forest-monitor-local')

claudiobogossian commented 4 years ago

Fixed !