From a8101aac1307af3f5a825bd335a4f4ef6fe149e5 Mon Sep 17 00:00:00 2001 From: Roland <33993199+rolznz@users.noreply.github.com> Date: Tue, 10 Dec 2024 23:01:29 +0700 Subject: [PATCH] fix: disable auto link alby account (#873) --- alby/alby_oauth_service.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/alby/alby_oauth_service.go b/alby/alby_oauth_service.go index fd115b65..747221de 100644 --- a/alby/alby_oauth_service.go +++ b/alby/alby_oauth_service.go @@ -119,15 +119,6 @@ func (svc *albyOAuthService) CallbackHandler(ctx context.Context, code string, l logger.Logger.WithError(err).Error("Failed to set user identifier") return err } - - if svc.cfg.GetEnv().AutoLinkAlbyAccount { - // link account on first login - err := svc.LinkAccount(ctx, lnClient, 1_000_000, constants.BUDGET_RENEWAL_MONTHLY) - if err != nil { - logger.Logger.WithError(err).Error("Failed to link account on first auth callback") - } - } - } else if me.Identifier != existingUserIdentifier { // remove token so user can retry with correct account err := svc.cfg.SetUpdate(accessTokenKey, "", "")