Skip to content

Commit 1f0fa11

Browse files
committed
login: Reflect new value over the wire here
1 parent fe51258 commit 1f0fa11

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/cmd/login/login.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,7 @@ func RunTasksForUser(t *terminal.Terminal) error {
272272
func CreateNewUser(loginStore LoginStore, idToken string) (bool, error) {
273273
_, err := loginStore.CreateUser(idToken)
274274
if err != nil {
275-
if !(strings.Contains(err.Error(), "duplicate username") || strings.Contains(err.Error(), "duplicate external auth id")) {
275+
if !(strings.Contains(err.Error(), "duplicate username") || strings.Contains(err.Error(), "duplicate external auth id") || strings.Contains(err.Error(), "identity already exists")) {
276276
// This is a real error
277277
return false, breverrors.WrapAndTrace(err)
278278
}

0 commit comments

Comments
 (0)