auth: fix cloud auth (#113)
This commit is contained in:
@@ -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 {
|
||||
|
||||
@@ -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]()
|
||||
|
||||
Reference in New Issue
Block a user