Skip to content

Commit a8101aa

Browse files
authored
fix: disable auto link alby account (#873)
1 parent 4e47c18 commit a8101aa

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

alby/alby_oauth_service.go

-9
Original file line numberDiff line numberDiff line change
@@ -119,15 +119,6 @@ func (svc *albyOAuthService) CallbackHandler(ctx context.Context, code string, l
119119
logger.Logger.WithError(err).Error("Failed to set user identifier")
120120
return err
121121
}
122-
123-
if svc.cfg.GetEnv().AutoLinkAlbyAccount {
124-
// link account on first login
125-
err := svc.LinkAccount(ctx, lnClient, 1_000_000, constants.BUDGET_RENEWAL_MONTHLY)
126-
if err != nil {
127-
logger.Logger.WithError(err).Error("Failed to link account on first auth callback")
128-
}
129-
}
130-
131122
} else if me.Identifier != existingUserIdentifier {
132123
// remove token so user can retry with correct account
133124
err := svc.cfg.SetUpdate(accessTokenKey, "", "")

0 commit comments

Comments
 (0)