Skip to content

Commit 3a6397f

Browse files
committed
client: fix email existence check
1 parent 4f0c15f commit 3a6397f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/connector/client.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ func (gc *GMClient) Connect(ctx context.Context) {
113113
},
114114
})
115115
return
116-
} else if gc.Meta.Session.HasCookies() && gc.Client.Config.GetDeviceInfo().GetEmail() == "" {
116+
} else if gc.Meta.Session.AuthNetwork() == util.GoogleNetwork && gc.Client.Config.GetDeviceInfo().GetEmail() == "" {
117117
zerolog.Ctx(ctx).Error().Msg("No email in config, invalidating session")
118118
go gc.invalidateSession(ctx, status.BridgeState{
119119
StateEvent: status.StateBadCredentials,

0 commit comments

Comments
 (0)