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

This commit is contained in:
Viktor Liu
2026-08-13 17:28:37 +09:00
committed by Viktor Liu
parent e290769df1
commit d9ff306a7c
7 changed files with 588 additions and 71 deletions
+1 -1
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())