Upon startup, the scene loads with the Login Menu active.
An Empty GameObject called "Nakama Stuff" contains two scripts (NakamaClient.cs and Controller.cs) that are critical to managing user login and related web requests.
First, Nakama creates a new session using the DeviceID. This is a generic session, and can be made to be the only thing needed to login a user who has already logged in using that device, although as Circaevum is cross-platform and device agnostic, we think it's important to be able to login for a variety of users (one at a time) on each device., instead of just one user that it auto logs in to.
To reduce friction in logging in multiple users, a toggle is included on the Login Menu that allows a user to save their credentials as an auto-login option. This will generate a Button that shows up associated with the Device's logged in session. Simply clicking on this button will log in that user with their corresponding credentials.