About authentication
Before you can use Auggie, you will need to login to create an authentication session that can be used by Auggie in both interactive and automation modes.Augment authentication tokens are secrets and should be protected with the same level of security you’d use for any sensitive credential. Tokens are tied to the user who logged in, not to your team or enterprise account, so each user has a unique augment token.
Logging in
You can login by running the following command and following the prompts.Logging out
You can logout by running the following command. This will remove the local token from your machine and you will need to login again to use Auggie.Getting your session details
For automation, you will need to provide authentication details each time you run Auggie. After you have logged in above, you can print your current session JSON by running the following command.Using your session details
After you have your session details, you can pass them to Auggie through a number of methods depending on your use case and environment.Environment variables
You can set theAUGMENT_SESSION_AUTH environment variable to the session JSON before running Auggie. Pass it before you run the command, add it to your environment, or add it to your shell’s rc file to persist it.
Command-line flag
You can pass the session JSON directly using the--augment-session-json flag:
Revoking your tokens
You can revoke all the tokens for the current logged in user by running the following command. Usinglogout will only remove the local token from your machine.