We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7b09d35 commit a3fa114Copy full SHA for a3fa114
internal/cli/auth/token.go
@@ -40,7 +40,9 @@ func (opts *tokenOpts) Run() error {
40
if accessToken == "" {
41
return fmt.Errorf("no access token found for profile %s", opts.config.Name())
42
}
43
- return opts.Print(accessToken)
+ // Use fmt.Fprintln directly to output the raw token regardless of output settings.
44
+ _, err := fmt.Fprintln(opts.ConfigWriter(), accessToken)
45
+ return err
46
47
48
func TokenBuilder() *cobra.Command {
0 commit comments