clockworklabs / SpacetimeDB

Multiplayer at the speed of light
https://spacetimedb.com
Other
4.41k stars 110 forks source link

CLI - Login flow #1878

Closed bfops closed 3 weeks ago

bfops commented 1 month ago

Description of Changes

Add the spacetime login command, which gets a login token from the web server.

I have removed IdentityConfig in this PR, because we don't want to be storing identities anymore. I've also removed almost all of the --identity CLI parameters, because we want users to be going through spacetime login to switch identities, rather than "just in time" via CLI params.

Closes https://github.com/clockworklabs/SpacetimeDB/issues/1847.

API and ABI breaking changes

This breaks existing stored identities in the config file.

Expected complexity level and risk

3

Testing

Future work

bfops commented 4 weeks ago

(Going to fix Internal tests before merging)