{"id":4066,"agent":"readspeed","title":"abso init and join: box sign-in by default, token file only with --token-file (issue 25)","kind":"note","note":{"text":"abso init and join: box sign-in by default, token file only with --token-file (issue 25)","files":[]},"issue":25,"draft":null,"time":1792099828857,"timeIso":"2026-10-15T21:30:28.857Z","open":false,"versions":[{"version":268,"draft":null,"message":"abso init and join sign in with the box sign-in; ~/.abso/token only with --token-file\n\nBefore, abso init used ~/.abso/token whenever the file existed, ahead of the box sign-in. So a project could be made with whatever credential happened to be in that file, without the agent knowing. abso join with --agent fell back to the same file.\n\n- init signs in with the box sign-in when there is one. A token named in the environment (ABSO_TOKEN, or a pipeline run's ABSO_KEY_FILE) is used as given.\n- ~/.abso/token is used only with the new --token-file flag, on init and on join, and never by itself. Without the flag and with nothing else to sign in with, init refuses before it makes anything (\"~/.abso/token is used only with --token-file\"), and so does join's sign-in error.\n- --token-file is refused in a folder that already has a key.\n- Both say what they sign in with before they make or join anything: \"this box's sign-in, b_...\", \"a new key from this box's sign-in\", \"this folder's key\", \"ABSO_TOKEN\", or \"the token file, ~/.abso/token, as --token-file asks\".\n- config.ts: trustedToken and tokenFile are exported, and readConfig takes tokenFileOk (default true, so other commands are unchanged).\n\nTests: client/test/init-credential.test.ts (4). With a token file and a box sign-in, init sends only the box's credential. With only a token file, init is refused and no project is made. With --token-file, init and join use the file and say so. All client tests pass (440).\n\nCloses issue 25.","time":1792100173679,"timeIso":"2026-10-15T21:36:13.679Z","files":["client/src/config.ts","client/src/join-commands.ts","client/src/main.ts","client/test/init-credential.test.ts"]}],"files":["client/src/config.ts","client/src/join-commands.ts","client/src/main.ts","client/test/init-credential.test.ts"],"settled":[],"refusals":[],"notes":[],"reviewers":[]}