diff options
author | Martin Polden <mpolden@mpolden.no> | 2022-03-04 16:19:10 +0100 |
---|---|---|
committer | Martin Polden <mpolden@mpolden.no> | 2022-03-04 16:49:31 +0100 |
commit | 626efb08f7608c7592515ea10e45b1a2a58473a6 (patch) | |
tree | e8a033bb5f90ec18f1ba4ede11201633b5a54b45 /client | |
parent | 3b2f22544389283fd61952baa26a0f44ff7ded03 (diff) |
Avoid implicit re-authentication as this breaks spinner animation
Diffstat (limited to 'client')
-rw-r--r-- | client/go/auth0/auth0.go | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/client/go/auth0/auth0.go b/client/go/auth0/auth0.go index 2f7040b3d37..52ba3f085a4 100644 --- a/client/go/auth0/auth0.go +++ b/client/go/auth0/auth0.go @@ -166,13 +166,7 @@ func (a *Auth0) PrepareSystem(ctx context.Context) (*System, error) { res, err := tr.Refresh(ctx, a.system) if err != nil { - // ask and guide the user through the login process: - fmt.Println(fmt.Errorf("failed to renew access token, %s", err)) - fmt.Print("\n") - s, err = RunLogin(ctx, a, true) - if err != nil { - return nil, err - } + return nil, fmt.Errorf("failed to renew access token: %w: %s", err, "re-authenticate with 'vespa auth login'") } else { // persist the updated system with renewed access token s.AccessToken = res.AccessToken |