Skip to content

Commit

Permalink
fix: disable auto link alby account (#873)
Browse files Browse the repository at this point in the history
  • Loading branch information
rolznz authored Dec 10, 2024
1 parent 4e47c18 commit a8101aa
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions alby/alby_oauth_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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, "", "")
Expand Down

0 comments on commit a8101aa

Please sign in to comment.