Skip to content

Commit

Permalink
Merge branch 'DXCDT-267-more-reliable-access-token-regen' into DXCDT-…
Browse files Browse the repository at this point in the history
…298-interactive-login-prompt
  • Loading branch information
willvedd authored Dec 8, 2022
2 parents 5562ab7 + 2bcd603 commit d2ea263
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/cli/cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ func (c *cli) prepareTenant(ctx context.Context) (Tenant, error) {
}

if scopesChanged(t) && t.authenticatedWithDeviceCodeFlow() {
c.renderer.Warnf("Required scopes have changed. Please sign in to re-authorize the CLI.")
c.renderer.Warnf("Required scopes have changed. Please log in to re-authorize the CLI.")
return RunLoginAsUser(ctx, c)
}

Expand All @@ -221,7 +221,7 @@ func (c *cli) prepareTenant(ctx context.Context) (Tenant, error) {
return t, fmt.Errorf("Failed to renew access token. This may occur if the designated application has been deleted or client secret has been rotated. Please re-authenticate by running `auth0 login --as-machine`")
}

c.renderer.Warnf("Failed to renew access token. Please sign in to re-authenticate the CLI.")
c.renderer.Warnf("Failed to renew access token. Please log in to re-authorize the CLI.")
return RunLoginAsUser(ctx, c)

}
Expand Down

0 comments on commit d2ea263

Please sign in to comment.