Fall back to an available OAuth flow when the preferred one is not configured

This commit is contained in:
Viktor Liu
2026-08-12 18:56:47 +02:00
parent f27a0935bf
commit 9230ebf85d
7 changed files with 588 additions and 71 deletions

View File

@@ -410,7 +410,7 @@ func foregroundGetTokenInfo(ctx context.Context, cmd *cobra.Command, config *pro
oAuthFlow, err := auth.NewOAuthFlow(ctx, config, util.HasGraphicalSession(), false, hint)
if err != nil {
return nil, err
return nil, auth.WithSetupKeyAdvice(err)
}
flowInfo, err := oAuthFlow.RequestAuthInfo(context.TODO())