Dataskop / dataskop-ar

Dataskop breaks new scientific ground developing mobile, situational embedded data visualization methods to combine physical environmental and abstract data representation.
https://dataskop.fhstp.ac.at/en
MIT License
1 stars 0 forks source link

Access to Normal Mode when closing app during Demo Mode #72

Closed Mumb0 closed 5 months ago

Mumb0 commented 7 months ago

Describe the bug

Closing the app during demo mode incorrectly saves the admin token to the player prefs which then gets used the next time you start the app to auto login.

To Reproduce

Steps to reproduce the behavior:

  1. Use Demo Mode
  2. Exit App without Logging Out
  3. Reopen App
  4. Normal Scene Loads

Expected behavior

After exiting app during demo mode clear PlayerPrefs to get rid of admin token.

Additional context

A better solution would be to have a real demo user from the backend so it can be better to distinguish between users privileges and intentions. @victoradriel