Authentication
Users must log in to sui.direct in order to perform read/write actions, like pushing your code in a repository.
You can log in to CLI with this command:
direct auth login
Then you will need to sign a message with the wallet you provide.
And if you want to log out,
direct auth logout
From a technical view, authentication for users is simple.
CLI and Node handshakes, CLI sends its peer ID to Node
CLI sends a nonce to Node
User signs a signature, and CLI sends it to Node
Node validates the signature with the nonce and peer ID
Node generates a JWT token and sends it to the CLI
CLI stores it in the
~/sui.direct/TOKEN
file located in the home directory.

To get started with how to log in to sui.direct CLI, follow the next tutorial.
Slush WalletLast updated