Skip to content

Commit 8e3f858

Browse files
committed
feat(auth): update access token retrieval in login command
1 parent efb5243 commit 8e3f858

1 file changed

Lines changed: 1 addition & 4 deletions

File tree

  • packages/commands/src/commands/auth

packages/commands/src/commands/auth/login.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,7 @@ export default defineCommand({
123123
accessKeyId: flags.accessKeyId!,
124124
accessKeySecret: flags.accessKeySecret!,
125125
});
126-
console.log(resp);
127-
process.stderr.write("Done\n");
128-
const accessToken =
129-
typeof resp.Data?.AccessToken === "string" ? resp.Data.AccessToken : undefined;
126+
const accessToken = resp.cliAccessToken;
130127
await store.login({
131128
access_key_id: flags.accessKeyId,
132129
access_key_secret: flags.accessKeySecret,

0 commit comments

Comments
 (0)