auth: fix cloud auth (#113)

This commit is contained in:
Adam Van Ymeren
2025-07-19 11:39:48 -04:00
committed by GitHub
parent d4f6be8155
commit 840788c1e5
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -87,7 +87,7 @@ func (p *PhoneLogin) SubmitUserInput(ctx context.Context, input map[string]strin
Logger: zap.New(zerozap.New(zerolog.Ctx(ctx).With().Str("component", "telegram_phone_login_client").Logger())),
})
p.authClientCtx, p.authClientCancel = context.WithTimeoutCause(log.WithContext(ctx), time.Hour, errors.New("phone login took over one hour"))
p.authClientCtx, p.authClientCancel = context.WithTimeoutCause(log.WithContext(context.Background()), time.Hour, errors.New("phone login took over one hour"))
initialized := exsync.NewEvent()
done := NewFuture[error]()
runTelegramClient(p.authClientCtx, p.authClient, initialized, done, func(ctx context.Context) error {
+1 -1
View File
@@ -86,7 +86,7 @@ func (q *QRLogin) Start(ctx context.Context) (*bridgev2.LoginStep, error) {
Logger: zaplog,
})
q.authClientCtx, q.authClientCancel = context.WithTimeoutCause(log.WithContext(ctx), time.Hour, errors.New("phone login took over one hour"))
q.authClientCtx, q.authClientCancel = context.WithTimeoutCause(log.WithContext(context.Background()), time.Hour, errors.New("phone login took over one hour"))
initialized := exsync.NewEvent()
done := NewFuture[error]()