no credentials present (cookie or localstorage):
-
Prompt for new player information
Hello! blah blah, make a new character with the (new-player) function like so: (new-player :name "Joe" :password "FooBar" :desc "Just a random person")
-
User runs new-player
-
Generate uuid for auth details
-
Store auth credentials in localStorage: {"name":"...", "password":"...", "desc":"...", "uuid": "..."}
-
Any API request uses a make-api function that signs everything with the auth object.
-
Backend will create user objects for new uuids.
-
Put player (in room 0)
/new-player body: auth details
-
Tell user
You find yourself in a windowless room.