Skip to content

Commit 2094539

Browse files
committed
네이버 앱 ServiceinteractiveLogin 메소드에 캡챠 대응
1 parent 0f1a9bf commit 2094539

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/app/naver/service.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,14 @@ export default class Service {
2727
distinctUntilChanged(),
2828
takeWhile((loginStatus) => loginStatus !== "success")
2929
);
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+
);
3036

31-
const result$ = concat(login$, loginStatus$);
37+
const result$ = concat(login$, captchaStatus$, loginStatus$);
3238
return result$;
3339
}
3440

0 commit comments

Comments
 (0)