We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7765fd5 commit 496595aCopy full SHA for 496595a
1 file changed
cmd/auth.go
@@ -83,10 +83,16 @@ func loginCmd() *cobra.Command {
83
Str("authCode", util.IfEmpty(authCode, "<nil>")).
84
Msg("logging in")
85
86
+ bag, err := dependencies.AppStore.Bag(appstore.BagInput{})
87
+ if err != nil {
88
+ return fmt.Errorf("failed to get bag: %w", err)
89
+ }
90
+
91
output, err := dependencies.AppStore.Login(appstore.LoginInput{
92
Email: email,
93
Password: password,
94
AuthCode: authCode,
95
+ Endpoint: bag.AuthEndpoint,
96
})
97
if err != nil {
98
if errors.Is(err, appstore.ErrAuthCodeRequired) && !interactive {
0 commit comments