We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Service
interactiveLogin
1 parent 0f1a9bf commit 2094539Copy full SHA for 2094539
src/app/naver/service.ts
@@ -27,8 +27,14 @@ export default class Service {
27
distinctUntilChanged(),
28
takeWhile((loginStatus) => loginStatus !== "success")
29
);
30
+ const captchaStatus$ = interval(500)
31
+ .pipe(mergeMap(() => this.module.pageInteractor.getCaptchaStatus()))
32
+ .pipe(
33
+ distinctUntilChanged((a, b) => a?.question === b?.question),
34
+ takeWhile((captchaStatus) => captchaStatus !== null)
35
+ );
36
- const result$ = concat(login$, loginStatus$);
37
+ const result$ = concat(login$, captchaStatus$, loginStatus$);
38
return result$;
39
}
40
0 commit comments